Radio Buttons and Database Results
Posted: Sat Mar 18, 2006 9:47 am
feyd | Please use
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I have been working 4 days to select radio buttons from my database with no luck. Can anyone break down some simple code for radio buttons? I have attached my code which does not return the selected value. Thanks!Code: Select all
<?php include("dbconfig.php");
if ($DESIGN_ID) {
$result = mysql_query("SELECT * FROM DESIGN_TABLE WHERE dusername= '$session->username'AND DESIGN_ID = $DESIGN_ID",$link);
$myrow = mysql_fetch_array($result);
echo "<tr><td bgcolor=#CCE5FF>Your Design Contact Method: <input type=radio name=CONTACT_METHOD value=Web Conference <=$myrow[CONTACT_METHOD]) selected=\"selected\">";}
else { echo "Sorry, no records were found!"; } ?>feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]