You are here: Re: if null=true « All PHP « IT news, forums, messages
Re: if null=true

Posted by Gernot Frisch on 03/09/06 13:53

<form action="calc.php" method="post" enctype="multipart/form-data"
name="form1" target="_self" id="form1">

<select name="number1" id="number1">
<?php


// if(!isnull($number1)) {
if(isset($_POST['combo1']) {



echo "<option value='<?php echo $number1; ?>'
selected='selected'>£<?php echo $number1; ?></option>";
echo "<option value=''> - - - </option>";
}
?>
<option



name="combo1"



value="10000">&pound;10,000</option>
<option value="11000">&pound;11,000</option>
// etc etc
</select>

<input name="Submit" type="submit" value="Submit" style="width:320">
</form>

You post the values from your boxes, so you must use $_POST[] - read
the manual. The combo must have a name to return anything useful.

HTH,
-Gernot

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация