PHP How can I keep the selected option from a drop down to stay selected on submit?
问题 I have: <select name="topic" style="margin-bottom:3px;"> <option>General Question</option> <option>Company Information</option> <option>Customer Issue</option> <option>Supplier Issue</option> <option>Request For Quote</option> <option>Other</option> </select> for the drop down. And when the form is submitted, It goes to a validation page. If it has errors the form keeps the original content the user put in. I have it working for all of the input fields and textarea's, but how could I do this