passing value from one page to another. Then target value for shipping cost
can anyone teach me how i can pass form value from one page to another using the post method so that on the 2nd page, depending on the value passed forward, a user gets charged $5 shipping or get free shipping?
I want the values "collect" and "mail" to be passed on. But i duno how on the 2nd page do i target them to determine the shipping cost for the user.
I suppose it will need an if statement and call a function via php/java?
page1
<form action="contact.php" method="post" name="myemailform">
Method of Ticket Collection:<br>
<select name="method">
<option value="collect">By Self Collection</option>
<option value="mail">By Mail</option>
</select>
page 2
<form action="https://www.paypal.com/cgi-bin/w⦠method="post">
<fieldset>
<input type="hidden" name="cmd" value="_cart" />
<input type="hidden" name="add" value="1" />
<input type="hidden" name="business" value="XXXXXXXXXX" />
<input type="hidden" name="item_name" value="Item" />
<input type="hidden" name="tax" value="7.14" />
<input type="hidden" name="amount" value="238.00" />
<input type="hidden" name="currency_code" value="AUD" />
<input type="hidden" name="handling" value="0.31">
<input type="hidden" name="handling_cart" value="5.00">
<input type="hidden" name="return" value="https://minicart.paypal-labs.com/⦠/>
<input type="hidden" name="cancel_return" value="https://minicart.paypal-labs.com/⦠/>
<strong>VIP $238.00</strong>
<input type="submit" name="submit" value="Add to cart" class="button" />
</fieldset>
</form>
|