Posted by Steve on 03/09/06 13:12
I have a form which sub,its two values which i have succesfully added
together...its a kind of calculator.
I have populated a drop down menu in with 1-10 and i am trying to make
it so if its the first time they visit the page it only shows 1-10 in
the drop down menu.
but if they have already submitted two values becuase it reloads the
same page on form submit i want the values they submitted to be the
first items in the drop down menu.
Heres the code i have:
<?php
if (isnull($number1))=false {
echo "<option value='<?php echo $number1; ?>'
selected='selected'>£<?php echo $number1; ?></option>";
}
?>
and heres the error:
Parse error: parse error, unexpected '=' in
/home/users/uks08258/html/stephena.co.uk/j4m/calc.php on line 23
is there a not null i can use?
Navigation:
[Reply to this message]
|