Select Box - Value selected from variable

1 replies
  • WEB DESIGN
  • |
The option goes into the database, and I want to pull out the data (using PHP) and have the option that they chose as the default value. How can I do this?
#box #select #selected #variable
  • Profile picture of the author James Kenton
    To check the box, include the option checked="yes" within the input tag; like this:

    <input type="checkbox" checked="yes" name="optionName" value="optionValue" />

    As for how you store and fetch their choices - that's not a difficult job for a php programmer but would take a lot more than a short forum post to answer! Perhaps you could let me know how much php you know already.
    {{ DiscussionBoard.errors[4584354].message }}

Trending Topics