[code=html]
<form id=”user_form” name=”user_form” method=”post” action=”<?php echo $_SERVER[‘PHP_SELF’]; ?>” onsubmit=”return checkUserInput();”>
<label for=”username”>Username:</label><br/>
<input type=”text” id=”username” name=”username” maxlength=”25″/><br/><br/>
<label for=”email”>Email Address:</label><br/>
<input type=”text” id=”email” name=”email” maxlength=”40″/><br/><br/>
<label>Is this user an Admin?</label> Yes<input type=”radio” name=”admin” value=”1″/> No<input type=”radio” name=”admin” value=”0″/><br/><br/>
<label for=”pwd”>Please enter your password:</label><br/>
<input type=”password” id=”pwd” name=”pwd”/><br/><br/>
<input type=”submit” id=”submit” name=”submit” value=”Submit”/> <input type=”reset” value=”Reset”/>
I’m using PHP to process the form, but I don’t think that’s what’s working against me. For some reason, if the No radio button is selected, PHP tells me that I haven’t filled out everything (even when I have). The reason I don’t think it’s something wrong with my PHP is that it knows that everything is filled out if I select the Yes button. For some reason it just doesn’t seem to register when No is selected.