...

View Full Version : Radio Buttons Not Being Passed



GenVic
09-16-2009, 10:53 PM
I have radio buttons that are not being sent when selected, they either not being passed, or not echoing. Any ideas?

This get's passed and echos just fine:
<input name="abc" type="radio" value="50" />50
<input name="abc" type="radio" value="60 " />60

<?php echo $_POST['abc'];?>

But this one doesn't get passed:

<input name="do" type="radio" value="Enclosed"/>Enclosed
<input name="do" type="radio" value="Open" />Open
<input name="do" type="radio" value="Both" /> Both


<?php echo $_POST['do'];?>

Coyote6
09-16-2009, 11:06 PM
Hmm looks good. Are you sure there is nothing else causing it? :confused:

ckeyrouz
09-17-2009, 12:14 AM
try changing the name of the radio buttons from do to something else.
maybe doSomething

jegan2k9
09-17-2009, 08:48 AM
Hi GenVic,

The coding for the radio button and tags are right.
Please check in the form that you mentioned method="post".
If not please use the method="post".
And also check that you opened a form tag and closed it.
And check it.
May be this will help you.

Thanks

GenVic
09-17-2009, 04:53 PM
try changing the name of the radio buttons from do to something else.
maybe doSomething

Yeah, that did it, thanks. I think it may have been some hidden characters within the editor, weird.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum