aeroswat Posted December 8, 2009 Share Posted December 8, 2009 Is there an easier way of setting what should be selected on one of these rather than writing a bunch of if statements for each option? This is for a form submission. When someone screws up and doesn't enter everything on the form it refills the information that was already entered and I can't just set the value of a select box like I can on a text box. Link to comment https://forums.phpfreaks.com/topic/184412-php-html-selection-boxes/ Share on other sites More sharing options...
dannyluked Posted December 8, 2009 Share Posted December 8, 2009 If im understanding you right... You could use cookies for setting whick box is selected or use something like; ?1=selected&2=selected... 1 being the checkbox and selected being the option... Link to comment https://forums.phpfreaks.com/topic/184412-php-html-selection-boxes/#findComment-973460 Share on other sites More sharing options...
aeroswat Posted December 8, 2009 Author Share Posted December 8, 2009 Nah it's for select boxes and I really don't want to put it in the URL. Thanks anyways i decided to just go with the if statements. I'm almost done writing them anyways. Link to comment https://forums.phpfreaks.com/topic/184412-php-html-selection-boxes/#findComment-973463 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.