Hey, Do you guys know how to do an auto submit a form in PHP?
I’ve used it with javascript but the problem is that Javascript can be turned off.
The HTML page form
<form name="pp" target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<p>
<input type="image"
src="../img/add.gif"
name="I1" alt="Add to Basket" width="75" height="26">
<input type="hidden" name="lc" value="GB">
<input type="hidden" name="currency_code" value="GBP">
<input type="hidden" name="cancel_return" value="www.mywebsite.com">
<input type="hidden" name="return" value="www.mywebsite.com">
<input type="hidden" name="no_shipping" value="2">
<input type="hidden" name="amount" value="100">
<input type="hidden" name="item_number" value="100">
<input type="hidden" name="item_name" value="product name">
<input type="hidden" name="business" value="sales@mywebsite.com">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
</p>
</form>
This is the javascript:
<script type="text/javascript" language="JavaScript">
//submit form
document.pp.submit();
history.back();
</script>
This auto submits the form, and sends the php page back a step. However, I need a PHP one!
thanks in advanced guys!!