# PHP - Auto Submit (Help)

**URL:** <https://forum.kirupa.com/t/php-auto-submit-help/183602>\
**Category:** programming\
**Created:** [March 28, 2006, 6:43pm UTC](https://forum.kirupa.com/t/php-auto-submit-help/183602 "2006-03-28T18:43:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theflashdude](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@theflashdude](https://forum.kirupa.com/u/theflashdude)\
**Post date:** [March 28, 2006, 6:43pm UTC](https://forum.kirupa.com/t/php-auto-submit-help/183602/1 "2006-03-28T18:43:56Z")

</div>

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

```auto
<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:

```auto
<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!!

---

<div class="post-metadata">

**Author:** ![signifer123](https://avatars.discourse-cdn.com/v4/letter/s/858c86/32.png) [@signifer123](https://forum.kirupa.com/u/signifer123)\
**Post date:** [March 28, 2006, 8:25pm UTC](https://forum.kirupa.com/t/php-auto-submit-help/183602/2 "2006-03-28T20:25:58Z")

</div>

Uhh you can’t have a php one because the php runs on the server, you’ll have to stick with javascript/JScript/VBScript. Deosn’t amtter there is no way ot force them to have autosubmit…if irun on my palm or on a console based computer then it won’t autosubmit…

So the point is you can’t, everything that can autosubmit can be turned off

---

<div class="post-metadata">

**Author:** ![theflashdude](https://avatars.discourse-cdn.com/v4/letter/t/e274bd/32.png) [@theflashdude](https://forum.kirupa.com/u/theflashdude)\
**Post date:** [March 28, 2006, 8:32pm UTC](https://forum.kirupa.com/t/php-auto-submit-help/183602/3 "2006-03-28T20:32:12Z")

</div>

hmm…cheers. That’s a small problem, javascript…argh lol.
