zuzupus
06-25-2003, 03:04 AM
hi,
i got problem regarding displaying value
<td nowrap>
//for clock i used javascript from http://www.javascriptkit.com/script/cut2.shtml
<input type="text" class="button" size="1" name="clock">
<select name="To" size="1" >
<option selected >8:00</option>
<option selected >9:00</option>
<option selected >10:00</option>
</select>
</td>
<td>
<? if ($_POST["To"] != "clock") {?>
<?= $line["To"] ?>
//whats wrong ib below code and how i can get value of clock when no time is selected from To files
<? if (isset($_POST["clock"]))?>//its not going to this loop
<?echo $_POST["clock"]; ?>
<? }?>
</td>
its getting only value of To field no matter whether user chooses tiem from To or running clock is there,i want something like when user not select anything from To he will get value of clock and
if i use this alone
<? if (isset($_POST["clock"]))?>//getting error
<?echo $_POST["clock"]; ?>
<? }?>
thanks
i got problem regarding displaying value
<td nowrap>
//for clock i used javascript from http://www.javascriptkit.com/script/cut2.shtml
<input type="text" class="button" size="1" name="clock">
<select name="To" size="1" >
<option selected >8:00</option>
<option selected >9:00</option>
<option selected >10:00</option>
</select>
</td>
<td>
<? if ($_POST["To"] != "clock") {?>
<?= $line["To"] ?>
//whats wrong ib below code and how i can get value of clock when no time is selected from To files
<? if (isset($_POST["clock"]))?>//its not going to this loop
<?echo $_POST["clock"]; ?>
<? }?>
</td>
its getting only value of To field no matter whether user chooses tiem from To or running clock is there,i want something like when user not select anything from To he will get value of clock and
if i use this alone
<? if (isset($_POST["clock"]))?>//getting error
<?echo $_POST["clock"]; ?>
<? }?>
thanks