Re: Drop down list - persistant value
| From: | Burhan Khalid | Date: | Tue, 22 Mar 2005 07:52:51 +0000 |
| Subject: | Re: Drop down list - persistant value | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-211272@lists.php.net to get a copy of this message | ||
Jacques wrote:
I am using PHP. I have a registration page where the user has to select his country form a drop down list. If the username that the user selected for himself exists in the database I am sending him back to the registration form with all the fields completed with the values he previously entered. This is easy to do for a textfield but how do I indicate on the drop down list which country he originally selected?Set the attribute selected on the country, ie : <option value="12" selected="selected">United States</option> This is really a HTML question, not PHP related.