html and php question?

Mitch

New member
So, i have a select box that has a value for each state.

when submitted it sends that state info to the database.

when you click on "edit" it pulls up text boxes with the previously filled in info which can be updated and re-submitted. besides it shows the original values as well..

long story short, the select box defaults on Alaska no matter what state is selected or is in the database.

How do i make it select the state that is currently IN the database and display that??

it would be too easy for someone to re-save the record with alaska as the person's state which would cause issues for us.

thanks
PS

i know you can do a "SELECTED" in the drop menu itself but, not sure how i would tell it which to select.

.
 
Back
Top