Radio Buttons Won't Work

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Radio Buttons Won't Work

Post by snowrhythm »

i've got a little unstyled form that looks like this:

Code: Select all

<form name="advancedsearchform" target="parthunter" action="index.php">

	  	<p>Part Number:</p>
	  	<input type="text" name="partnum" value=""><br />
		  begins with:<input type="radio" name="begins" value="begins" />
		  ends with:<input type="radio" name="ends" value="ends" />
		  exact:<input type="radio" name="exact" value="exact" />

	  	<p>Part Description:</p>
	  		<input type="text" name="partdesc" value=""><br />

		<p>Part Class:</p>
		<select type="text" name="partclass" class="searchinput">
			<option value=""></option>
		</select>

		<p>Part Searchword:</p>
	  	<select type="text" name="searchword" class="searchinput">
	  		<option value=""></option>
	  	</select>

	  	<p>Part Type:</p>
	  	<select type="text" name="parttype" class="searchinput">
		  	<option value="m">Manufactured</option>
		  	<option value="p">Purchased</option>
	  	</select>

</form>

the problem is that those radio buttons won't be exclusive of one another...in other words they can all be selected at once. bad radio buttons.
so if anybody can tell me what kind of blunder i've caused, i'd be thankful, cuz it's giving me a headache. thanks in advance.
User avatar
snowrhythm
Forum Commoner
Posts: 75
Joined: Thu May 04, 2006 1:14 pm
Location: North Bay Area, CA

Post by snowrhythm »

nevermind...a friend just told me all the names had to be the same, i'm in business now.
Post Reply