how to insert radiobutton value into mysql database?
| From: | bo | Date: | Sat, 17 Aug 2002 07:49:21 +0000 |
| Subject: | how to insert radiobutton value into mysql database? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-21186@lists.php.net to get a copy of this message | ||
here is a block of code inside a form
<td><font color="#FFCC00">
<input type="radio" name="Seeking"
value="Seeking_record_contract"
checked>
Record Contract</font></td>
<td><font color="#FFCC00">
<input type="radio" name="Seeking"
value="Seeking_pub_contract">
</font></td>
<td><font color="#FFCC00">Pub Contract</font></td>
<td><font color="#FFCC00">
<input type="radio" name="Seeking"
value="Seeking_live_gigs">
</font></td>
<td><font color="#FFCC00">Live Gigs</font></td>
three radio button with the same name but different value, my question is
how to insert the value that user clicked when processing the form?
I tried to write one, but it didnt' seem to work:
$insertQuery = "INSERT INTO tablename VALUES ( \"{$Seeking}\",
.....
)";
(and in the future how do I retrieve those from mySQL and output to the
webpage?)
Thank you and any help or info will be much appreciated.
Bo