Forums
This topic is locked
Any way to make a radio button submit 2 values?
Posted 26 Apr 2007 12:32:38
1
has voted
26 Apr 2007 12:32:38 russell coleman posted:
So I have a radio button<input type="radio" name="obj" value="1">
And would like, when it is selected to submit 2 values, so I have
<input type="radio" name="obj" value="1"><% response.write "&test=" & i %>" />
Which looks fine in the source code of the page
name="obj" value="1&test=2"
but when submitted passes as
obj=1%26test%3D2
how can i get the %26 to be an '&' and the %3D to be an '='
Is there a way to workaround this?? Can this even be done??
thanks
Replies
Replied 04 May 2007 09:54:51
04 May 2007 09:54:51 Mins Ismadi Sani replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
So I have a radio button
<input type="radio" name="obj" value="1">
And would like, when it is selected to submit 2 values, so I have
<input type="radio" name="obj" value="1"><% response.write "&test=" & i %>" />
Which looks fine in the source code of the page
name="obj" value="1&test=2"
but when submitted passes as
obj=1%26test%3D2
how can i get the %26 to be an '&' and the %3D to be an '='
Is there a way to workaround this?? Can this even be done??
thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I know the entity for '&' is '&', not sure about '=' though.
So I have a radio button
<input type="radio" name="obj" value="1">
And would like, when it is selected to submit 2 values, so I have
<input type="radio" name="obj" value="1"><% response.write "&test=" & i %>" />
Which looks fine in the source code of the page
name="obj" value="1&test=2"
but when submitted passes as
obj=1%26test%3D2
how can i get the %26 to be an '&' and the %3D to be an '='
Is there a way to workaround this?? Can this even be done??
thanks
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I know the entity for '&' is '&', not sure about '=' though.
Replied 04 May 2007 10:00:09
04 May 2007 10:00:09 Mins Ismadi Sani replied:
ok, that didn't come out right. '&' is '& a m p ;' (remove spaces)<img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>
Replied 07 Apr 2008 21:32:49
07 Apr 2008 21:32:49 Nate B replied:
Hi folks. Did anyone figure this out? I'm trying to do the same thing and can't get it to work.
Alternately, you can separate the values in the submitting field by putting a comma between the values, but then I don't know how to handle the output. It comes across as "4,5". Any way to break those two values up?
Thanks!
Alternately, you can separate the values in the submitting field by putting a comma between the values, but then I don't know how to handle the output. It comes across as "4,5". Any way to break those two values up?
Thanks!