Jump to content

Easy Radio Button Question


thesaleboat

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.