dropfaith Posted September 25, 2008 Share Posted September 25, 2008 how do i get selected options from my sql using php <select name="OpenSun"> <option value="User selected time" selected="selected">User seleted time</option> <option value="1am">1 am <option value="2am">2 am <option value="3am">3 am <option value="4am">4 am <option value="5am">5 am <option value="6am">6 am <option value="7am">7 am <option value="8am">8 am <option value="9am">9 am <option value="10am">10 am <option value="11am">11 am <option value="12am">12 am <option value="1pm">1 pm <option value="2pm">2 pm <option value="3pm">3 pm <option value="4pm">4 pm <option value="5pm">5 pm <option value="6pm">6 pm <option value="7pm">7 pm <option value="8pm">8 pm <option value="9pm">9 pm <option value="10ppm">10 pm <option value="11pm">11 pm <option value="12pm">12 pm </select> Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 25, 2008 Share Posted September 25, 2008 $_GET['OpenSun'] or $_POST['OpenSun'] if your form use post instead of get Scott. Quote Link to comment Share on other sites More sharing options...
dropfaith Posted September 25, 2008 Author Share Posted September 25, 2008 problem is i need to do this for 14 different values opensun closesun and so on for all 7 days is there a tutorial anywhere on this ? Quote Link to comment Share on other sites More sharing options...
ratcateme Posted September 25, 2008 Share Posted September 25, 2008 i think you would find that is the easiest you just have to write out the same code like 14 times. Scott. Quote Link to comment Share on other sites More sharing options...
dropfaith Posted September 25, 2008 Author Share Posted September 25, 2008 how would get work from the mysl tho?? im kinda learning php as i go here Quote Link to comment Share on other sites More sharing options...
dropfaith Posted September 25, 2008 Author Share Posted September 25, 2008 <?php echo $_GET["name"]; ?> i understand the get echoed out but why use get i need the result from a mysql database which ive never used get for anything except getting things from the url (which i thought was the only thing it did) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.