thesaleboat Posted April 14, 2009 Share Posted April 14, 2009 I'm pretty sure this is incorrect code so please guide me here, I have two radio buttons for gender. <input type="radio" name="gender" value="<?php echo isset($_POST['gender=Male']) ? $_POST['gender=Male'] : '';?>" checked="checked"/> Male<br /> <input type="radio" name="gender" value="<?php echo isset($_POST['gender=Female']) ? $_POST['gender=Female'] : '';?>" /> Female<br /><br /> How do I properly assign a value to gender for the database? Link to comment https://forums.phpfreaks.com/topic/154120-easy-radio-button-question/ Share on other sites More sharing options...
Kalland Posted April 14, 2009 Share Posted April 14, 2009 Hi, Maybe this tutorial will help you: http://www.homeandlearn.co.uk/php/php4p10.html Link to comment https://forums.phpfreaks.com/topic/154120-easy-radio-button-question/#findComment-810202 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.