Posted by Nico on 12/04/06 13:48
Dear All,
I'm new in the Php world and am trying to do my first trials (with
included errors :).
At the present I created a simple form:
<FORM METHOD="POST" ACTION="test.php">
<INPUT TYPE="text" NAME="amount" SIZE="10" MAXLENGHT="20">
<INPUT TYPE="SUBMIT" VALUE="SUBMIT">
</FORM>
Then, in the test.php page I've included the following code:
<?php
echo $_REQUEST["amount"];
?>
In the field "amount" of the form it will be inserted a number.
I'd like to create a string which make the following operations:
if the inserted amount is < or = to 1 go to the URL http://www.....
if the inserted amount is > 1 go to the URL http://www.....
I've some problem because don't know if I can use something like "if
"amount = 1 ... " or not.
Can you help me please?
Many thanks.
All the best,
Nico
Navigation:
[Reply to this message]
|