Forum Moderators: coopster

Message Too Old, No Replies

PHP & HTML select problem

         

hunkydory

10:47 pm on May 15, 2007 (gmt 0)

10+ Year Member



Hello everyone,

Firstly sorry for the easy question but im stuck.

I have a html select:

<form action="test.php" method="post">
<select name="cmb_time" onchange="submit()">
<option value="02:45:00">2:45</option>
<option value="03:00:00">3:00</option>
<option value="03:30:00">3:30</option>
<option value="04:00:00">4:00</option>
<option value="04:30:00">4:30</option>
<option value="05:00:00">5:00</option>
</select>
</form>

The php page has:

$cmb = $_POST['cmb_time'];

Yet this does not seem to pick up the value of cmb_time, is this because when the page is refreshed with the submit it looses the value of the var?

Any hints please,

Many Thanks!

hunkydory

11:25 pm on May 15, 2007 (gmt 0)

10+ Year Member



Fixed it, not to worry - thanks anyways!