Allowing users to register as male or female
Posted: Tue Jul 26, 2011 8:19 pm
Is this code correct
<?php if(isset($_POST['submit'])) { if($_POST['user_gender'] == 1) { $user_gender = male; } if($_POST['user_ender'] == 2) { $user_gender = female; }else{ echo "you must select a gender"; } } ?>Am I going in the right direction? Any tutorials?