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">£10,000</option>
<option value="11000">£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
[Back to original message]
|