PDA

View Full Version : Question about Input Variables


Squid44th
12-08-03, 12:56 PM
looking for a (yes, it's correct) or (no, not possible or no, correct code/link to find it) Thanks.

I have a radio group of 5 and I want to associate 2 variables with each choice:

<input type="radio" name="member_1st,member_1stt" value="armor.gif,Armored"> Armor&nbsp;&nbsp;
<input type="radio" name="member_1st,member_1stt" value="inf.gif,Infantry"> Infantry&nbsp;&nbsp;
<input type="radio" name="member_1st,member_1stt" value="air.gif,'Air Force'"> Air Force&nbsp;&nbsp;

hyjacked
12-08-03, 02:12 PM
easily....no
some code work arounds...yes

you can't actually pass to values, but you could pass one and have it contain the 2 values you want. The easiest way I could think of is to have a character that tells you where the second variable starts.
ie:
...value="armor.gif*Armored"...

where * is the character to separate the 2.

then when you are parsing the values, separate the one variable into the 2 you want.

hope this helps.