Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Website Design (https://www.warriorforum.com/website-design/)
-   -   Select Box - Value selected from variable (https://www.warriorforum.com/website-design/439063-select-box-value-selected-variable.html)

foiodisar 24th August 2011 10:29 PM

Select Box - Value selected from variable
 
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?

James Kenton 31st August 2011 05:15 PM

Re: Select Box - Value selected from variable
 
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.


All times are GMT -6. The time now is 05:04 PM.