Jump to content

Upload radio button value to MYSQL filed


fraser5002

Recommended Posts

$radiobuttonvalue = $_POST['radiobuttonvalue'];
$query = "update tablename set fieldname = '".$radiobuttonvalue."' where primaryfieldname=value";

 

consider, your form will be like this,

 

<input type="radio" name="radiobuttonvalue" value="1">Y

<input type="radio" name="radiobuttonvalue" value="0">N

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.