Posted by Steve on 03/09/06 13:35
its still not returning anything in the drop down menu here is my code:
<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)) {
echo "<option value='<?php echo $number1; ?>'
selected='selected'>£<?php echo $number1; ?></option>";
echo "<option value=''> - - - </option>";
}
?>
<option 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>
What i am trying to achieve is that if they have submitted the form it
displays the value they have submitted at the top of the drop down menu
as well as the existing values.
If they havent then it just displays the html values in the drop down
menu.
Currently i am getting a drop down menu with nothing in it!
Navigation:
[Reply to this message]
|