Liam Delahunty: Home | Tips | Web | Contact |
---|
Recommended laptop
under £500. Think I deserve a present? See my Amazon Wish List |
PHP Form Select Option pre-checked.Select boxs and options are a great method of limiting the input from a user on a form to valid data only. However to maintain usability with the interface you really should pre-select the existing value.
print("<form action=\"$PHP_SELF\" method=\"post\">");
Building a select box from an array can be very useful to: Lets build an array, the key is a certain value corresponding to a users experience.
$user_lvl_array[1] = "Novice";
print ("<form action=\"\$PHP_SELF\"> method=\"post\">");
Try it here $new_user_level Share this! Php Read Titles Code | Php Select Options Form | Php Uk Mailing List Link here: |