bunny1
03-24-2007, 02:00 AM
I have a form and on text field on it
In the action of the form i want to use the value of the field in the header.
How do i get this value from the form
Here is the code
<form action="cart.php?qty=<?php echo $_POST['qty']; >" method="post" name="form1" class="style15">
<p><strong>Quantity</strong>:<input name="qty" type="text" id="qty" value="1" size="2" maxlength="4"></p>
<p><input name="Submit" type="submit" value="Add to Cart"></p>
</form>
i have used $_POST but i dont know if this will take data from the previous page.
Thanks
In the action of the form i want to use the value of the field in the header.
How do i get this value from the form
Here is the code
<form action="cart.php?qty=<?php echo $_POST['qty']; >" method="post" name="form1" class="style15">
<p><strong>Quantity</strong>:<input name="qty" type="text" id="qty" value="1" size="2" maxlength="4"></p>
<p><input name="Submit" type="submit" value="Add to Cart"></p>
</form>
i have used $_POST but i dont know if this will take data from the previous page.
Thanks