View Single Post
 
Old May 18th, 2004, 11:59 AM
dungey dungey is offline
Authorized User
 
Join Date: Jun 2003
Location: , , .
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default drop down value into mysql

Hello there,

I am trying to pass on the value of a dropdown list to mysql table.

I can pass input box variables to mysql, but not dropdown boxes...

this is what my input boxes look like and they work;
Address: <input type=text name=address value="<? echo $address; ?>">

and obviously after user enters the info i query the db to insert value address=$address into db. But I don't seem to know how to figure out the dropdown box. I want the dropdown box to have a value of yes and one of no. So when the user submits their form the value of the dropdown box would be inserted in the oppropriate field in the db.

Your help is much appreciated.
--DUNGEY