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> Link to comment https://forums.phpfreaks.com/topic/125744-fiat/ 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. Link to comment https://forums.phpfreaks.com/topic/125744-fiat/#findComment-650249 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 ? Link to comment https://forums.phpfreaks.com/topic/125744-fiat/#findComment-650250 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. Link to comment https://forums.phpfreaks.com/topic/125744-fiat/#findComment-650255 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 Link to comment https://forums.phpfreaks.com/topic/125744-fiat/#findComment-650259 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) Link to comment https://forums.phpfreaks.com/topic/125744-fiat/#findComment-650260 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.