...

View Full Version : Radio boxes help...



firecat318
03-17-2008, 09:19 PM
OK.. I don't know why I'm having problems with this, but when I make some radio boxes, I can click all 4 of them, not just one. Its making me mad because I want users to only be able to click one of them. Here is the code:



<form action="page.php" method="POST">
<input type="radio" name="100k" value="100k" />100k <br />
<input type="radio" name="1mil" value="1mil" />1 Mil <br />
<input type="radio" name="5mil" value="5mil" />5 Mil <br />
<input type="radio" name="10mil" value="10mil" />10 Mil <br />
<input type="submit" name="submit" value="Send" />
<input type="reset" name="reset" value="Clear" />
</form>


There is the code for the form part. Any help would be greatly appreciated.

jcdevelopment
03-17-2008, 09:24 PM
<form action="page.php" method="POST">
<input type="radio" name="same" value="100k" />100k <br />
<input type="radio" name="same" value="1mil" />1 Mil <br />
<input type="radio" name="same" value="5mil" />5 Mil <br />
<input type="radio" name="same" value="10mil" />10 Mil <br />
<input type="submit" name="submit" value="Send" />
<input type="reset" name="reset" value="Clear" />
</form>

all names must be the same to be a group, try that!!

firecat318
03-17-2008, 09:30 PM
<form action="page.php" method="POST">
<input type="radio" name="same" value="100k" />100k <br />
<input type="radio" name="same" value="1mil" />1 Mil <br />
<input type="radio" name="same" value="5mil" />5 Mil <br />
<input type="radio" name="same" value="10mil" />10 Mil <br />
<input type="submit" name="submit" value="Send" />
<input type="reset" name="reset" value="Clear" />
</form>

all names must be the same to be a group, try that!!

Sweet, it worked! Thanks a lot.

Apostropartheid
03-17-2008, 10:51 PM
method="POST" is not a valid statement in any XHTML flavor, by the way: all attribute literals must be in lowercase.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum