Originally posted by Bunkermaster
hehe a very common Q
ok what you need to do is insert SELECTED into the currently selected option in your dropdown.
query your table, add a switch case on current value and use 3 variables whith only set to " SELECTED" (the relevent one) and add it to your HTML code where needed.
Did I mention I was a newbie? hehe
Thanks for the reply. I love this PHP stuff but the first go around is nasty if you know what I mean.
Okay, could you give me a little code to clarify the situation? For example, here is what I've got so far...
echo "<SELECT NAME='sentiment'><OPTION VALUE='Id1'>Yes</OPTION><OPTION VALUE='Id2'>No</OPTION><OPTION VALUE='Id3'>Maybe</OPTION></SELECT>";
Where would I put the SELECTED stuff? The variable that I use to store the value from the record is $mychoice.
Thanks dude!