Ask Experts Questions for FREE Help !
    jeri20's Avatar
    jeri20 Posts: 1, Reputation: 1
    New Member

    Mar 13, 2011, 10:51 AM
    how to retain selected value from a dropdown list in a db?
    how do I save the selected value from the drop down list below into a mysql database? (the drop down list fetchs records from a table in the database)

    print "Select Hairdresser: ";
    $query="SELECT Staff_Name, Staff_Surname,id FROM staff ORDER BY Staff_Surname ASC";
    $result = mysql_query ($query);
    echo "<select name=Staff_Name, Staff_Surname value=''>Staff</option>";
    echo "<option value=$nt[id]>$nt[Staff_Name] $nt[Staff_Surname]</option>";}
    echo "</select>";

Check out some similar questions!

No dropdown Menu [ 1 Answers ]

I have IE 8.0 on My Laptop, I can access few sites normally however on few of the sites thereis no Drop down Menu. It comes Blank which I know is there if I access it throough some other PC through the same Network I have. Moreover I have downloaded Java Latest version today and tried to access the...

Address bar's dropdown box [ 1 Answers ]

When I visit some websites, they store their url in my address bar's dropdown menu. How can I make this happen for my own sites? Thanks: Darrel

View more questions Search

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.