Gossamer Forum
Home : Products : DBMan : Customization :

Passing values in the URL

Quote Reply
Passing values in the URL
Hi!

Im making a method=get form with checkboxes... the reason is that I want (!) the values to be visible in the URL..

Code:


<input type=checkbox name=my value=40 checked>

<input type=checkbox name=my value=50 checked>

<input type=checkbox name=my value=50 checked>


when submitted I do this in the .cgi:

Code:
$all = $in{'my'};
@fields = split(",", $all);


... to split them up into separete $fields[x]..

Now, this is all good and the $fields gets populated with the correct values. The problem is when I start comparing those $fields with other variables I have.. ie:

Code:
if ($fields[1] eq $banana) { jdjdjdjdjdjdjddj};


they never match - even though I can see that they both have the same value - it never executes (the program doesnt see them as the same).

Is this due to some weird encode formatting reason or what is going on?

Really appreciate any help on this. Thanks
Subject Author Views Date
Thread Passing values in the URL eric74 9973 Jan 29, 2002, 10:55 AM
Thread Re: [eric74] Passing values in the URL
kellner 9445 Jan 29, 2002, 11:39 AM
Thread Re: [kellner] Passing values in the URL
chmod 9368 Jan 29, 2002, 12:27 PM
Post Re: [chmod] Passing values in the URL
eric74 9213 Jan 30, 2002, 9:01 AM
Thread Re: [kellner] Passing values in the URL
eric74 9292 Jan 30, 2002, 9:02 AM
Thread Re: [eric74] Passing values in the URL
kellner 9353 Jan 30, 2002, 2:48 PM
Thread Re: [kellner] Passing values in the URL
Paul 9309 Jan 30, 2002, 2:53 PM
Post Re: [RedRum] Passing values in the URL
eric74 9268 Jan 31, 2002, 4:21 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9381 Feb 6, 2002, 6:00 AM
Thread Re: [eric74] Passing values in the URL
Paul 9248 Feb 6, 2002, 7:01 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9247 Feb 6, 2002, 10:13 AM
Thread Re: [eric74] Passing values in the URL
eric74 9243 Feb 6, 2002, 11:38 AM
Thread Re: [eric74] Passing values in the URL
Paul 9349 Feb 6, 2002, 11:43 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9286 Feb 6, 2002, 11:53 AM
Thread Re: [eric74] Passing values in the URL
Paul 9344 Feb 6, 2002, 11:56 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9288 Feb 6, 2002, 12:00 PM
Thread Re: [eric74] Passing values in the URL
Paul 9232 Feb 6, 2002, 12:03 PM
Thread Re: [RedRum] Passing values in the URL
eric74 9255 Feb 6, 2002, 12:08 PM
Post Re: [eric74] Passing values in the URL
Paul 9240 Feb 6, 2002, 12:12 PM
Thread Re: [eric74] Passing values in the URL
Paul 9290 Feb 6, 2002, 12:15 PM
Thread Re: [RedRum] Passing values in the URL
eric74 9207 Feb 7, 2002, 5:42 AM
Thread Re: [eric74] Passing values in the URL
Paul 9251 Feb 7, 2002, 6:18 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9406 Feb 7, 2002, 9:12 AM
Thread Re: [eric74] Passing values in the URL
Paul 9286 Feb 7, 2002, 9:30 AM
Thread Re: [RedRum] Passing values in the URL
eric74 9234 Feb 7, 2002, 10:01 AM
Thread Re: [eric74] Passing values in the URL
Paul 8785 Feb 7, 2002, 11:14 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8858 Feb 7, 2002, 12:12 PM
Thread Re: [eric74] Passing values in the URL
Paul 8866 Feb 8, 2002, 4:23 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8850 Feb 8, 2002, 4:45 AM
Thread Re: [eric74] Passing values in the URL
Paul 8800 Feb 8, 2002, 4:48 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8815 Feb 8, 2002, 5:20 AM
Thread Re: [eric74] Passing values in the URL
Paul 8927 Feb 8, 2002, 5:52 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8730 Feb 8, 2002, 6:03 AM
Thread Re: [eric74] Passing values in the URL
Paul 8859 Feb 8, 2002, 6:13 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8792 Feb 8, 2002, 8:29 AM
Thread Re: [eric74] Passing values in the URL
Paul 8847 Feb 8, 2002, 8:33 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8823 Feb 8, 2002, 8:39 AM
Thread Re: [eric74] Passing values in the URL
Paul 8764 Feb 8, 2002, 8:45 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8797 Feb 8, 2002, 9:05 AM
Thread Re: [eric74] Passing values in the URL
Paul 8785 Feb 8, 2002, 9:06 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8743 Feb 22, 2002, 9:53 AM
Thread Re: [eric74] Passing values in the URL
Paul 8746 Feb 22, 2002, 10:33 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8728 Feb 24, 2002, 5:32 AM
Thread Re: [eric74] Passing values in the URL
Paul 8768 Feb 24, 2002, 6:14 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8748 Feb 24, 2002, 6:36 AM
Thread Re: [eric74] Passing values in the URL
Paul 8696 Feb 24, 2002, 6:55 AM
Thread Re: [RedRum] Passing values in the URL
eric74 8665 Feb 24, 2002, 3:09 PM
Post Re: [eric74] Passing values in the URL
Paul 8674 Feb 25, 2002, 12:56 PM