add javascript to auto submit form

Ukończone Opublikowano Aug 26, 2009 Płatność przy odbiorze
Ukończone Płatność przy odbiorze

I need someone to add javascript to a php page so it will click the submit button on a form as soon as the page loads.

I want to auto submit a form when the page loads. The page? already? has all of the paramaters it needs passed to it from the previous page so there is no reason for the user to click a button to continue.

My shopping cart collects all of the needed information. It calls a form submission page for the credit card processor which is nothing more than an html page that passes the name/address/cost etc to the form page. The problem is that the user enters their information, clicks the next button on my cart which then loads a blank? form page with one button in the middle, then they have to click this page with one button on it to continue. There is no reason for the user to click this button because they already entered all of the information, I want to immediately submit the page without the user having to click the button on an empty page.

From my research, a java script like this should make it auto submit on load:

> <body onload="[url removed, login to view][0].$[url removed, login to view]();">

>

> <SCRIPT language="JavaScript1.2">

> function submitform()? ? ? ? ? ? ? ? ? ?

> {? ? ? ? ? ? ? ? ? ?

> if(document.$[url removed, login to view]())? ? ? ? ? ? ? ? ? ?

> {? ? ? ? ? ? ? ? ? ?

> document.$[url removed, login to view]();? ? ? ? ? ? ? ? ? ?

> }? ? ? ? ? ? ? ? ?

> }? ? ? ? ? ? ? ? ? ?

> </SCRIPT>? ? ? ? ?

However, I could not make it work and do not understand java well enough to fix it.

Attached is the page I want fixed. It is a php page that builds the form. This is from amember if you are familiar with their software.

Inżynieria JavaScript MySQL PHP Zarządzanie projektem Architektura oprogramowania Testowanie oprogramowania Usługi hostingowe Administracja serwisami WWW Testowanie serwisów WWW

Numer ID Projektu: #2852143

O projekcie

1 oferta Zdalny projekt Aktywny Aug 26, 2009

Przyznany użytkownikowi:

sivakumar2525

See private message.

$10 USD w ciągu 4 dni
(22 ocen)
3.9