# Auto submit

**URL:** <https://forum.kirupa.com/t/auto-submit/218935>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 4:14pm UTC](https://forum.kirupa.com/t/auto-submit/218935 "2007-03-12T16:14:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raithedavion](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/raithedavion/32/3427_2.png) [@raithedavion](https://forum.kirupa.com/u/raithedavion)\
**Post date:** [March 12, 2007, 4:14pm UTC](https://forum.kirupa.com/t/auto-submit/218935/1 "2007-03-12T16:14:53Z")

</div>

I’m trying to get a form to autosubmit a form. I’ve tried addint javascript: before the document.form1.submit(), changing the form name, document name, etc. Here is my current code. Any help would be very appreciated.

Thanks,

Raithe Davion

\<title\>logon\</title\>

\</head\>

\<body onLoad=“document.form1.submit()”\>

\<form name=“form1” action=“[http://www.pikespeaklearning.com/index.cgi](http://www.pikespeaklearning.com/index.cgi)” method=“POST”\>

\<input type=“hidden” name=“CE\_NEXT” value=“733:”\>

\<input type=“hidden” name=“CE\_ERROR” value=“1:”\>

\<input type=“hidden” name=“Password:USE\_COOKIE/DEFAULT” value=\<?php $\_POST[“PASSWORD”]?\>\>

\<input type=“hidden” name=“Password:ACTION” value=“check”\>

\<input type=“hidden” name=“SESSION\_ID” value=“0”\>

\<table width=“100%” border=“0” cellspacing=“1” cellpadding=“1”\>

\<tr valign=“middle” align=“center”\>

```
&lt;td colspan="2" bgcolor="#cccc99" width="213"&gt; 

        &lt;div align="center"&gt;

```

\<input type=“text” class=“listText” name=“ACCESS\_CODE” value=\<?php $\_POST[“ACCESS”]?\>\>

\<input type=“button” value=“LOGIN” onclick=“document.form1.submit()”\>

\</div\>

\</td\>

```
  &lt;/tr&gt;

```

\</table\>

\</form\>

\</body\>

\</html\>
