Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 24th Aug 2011, 10:29 PM   #1
Warrior Member
 
Join Date: 2011
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Select Box - Value selected from variable
Share on: 
fb share twitter share gplus share more share

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?
foiodisar is offline  
Unread 31st Aug 2011, 05:15 PM   #2
Always Learning
War Room Member
 
James Kenton's Avatar
 
Join Date: 2011
Location: England, UK
Posts: 26
Thanks: 7
Thanked 13 Times in 8 Posts
Blog Entries: 3
Default
Re: Select Box - Value selected from variable
Share on: 
fb share twitter share gplus share more share

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.
James Kenton is offline  
Closed Thread


Bookmarks

Tags
box, select, selected, variable


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:27 AM.