brown2005 Posted August 6, 2009 Share Posted August 6, 2009 <legend><span>Gender</span></legend><div><input type="radio" id="male" name="gender" value="male"><label for="male">Male</label></div><div><input type="radio" id="female" name="gender" value="female"> <label for="female">Female</label></div> <p class="error hidden" id="err_gender"></p> and how would I change this code below to work on the above if ( empty ( $_POST [ 'male' ] ) && empty ( $_POST [ 'female' ] ) ) { $errors [ 'gender' ] [] = "Please enter your gender\n"; } Quote Link to comment Share on other sites More sharing options...
abazoskib Posted August 6, 2009 Share Posted August 6, 2009 if ( empty ( $_POST [ 'gender' ] ) ) { $errors [ 'gender' ] [] = "Please enter your gender\n"; } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.