How to preSelect an html dropdown list with php? [duplicate]
问题 This question already has answers here : Using $_POST to get select option value from HTML (8 answers) Closed 3 years ago . I am trying to get the option selected using PHP, but I ran out of ideas! Below is the code I have tried until now: <select> <option value="1">Yes</options> <option value="2">No</options> <option value="3">Fine</options> </select> <input type="text" value="" name="name"> <input type="submit" value="go" name="go"> So, what do I have to do? 回答1: Programmers are lazy...er..