Form submit on load

H

Hans Recter

Hi

I have a form with hidden fields that gather information from another form.

I would like this form to submit itself as soon as it is loaded.
Can anyone tell me if it is possible to do this and if so how?

Thanks in advance
Hans Recter
 
S

Stuart Palmer

don't get why you'd wanna do it but it would be something like:-

<body onload="document.MyForm.submit();">

doesn't seem to work in NS 4.75 though or defo won't work for non JS users.

Stu
 
H

Hans Recter

I want to use the Pay Pal shopping cart on my site. The button and code they
provide create a form with hidden fields to link to your cart. I am using a
DHTML menu system on my site which will only point to a URL or run a
JavaScript command and I want to use it to open the cart.
My thought was to open a page with the hidden fields and have it submit
automatically. Maybe there is a better way?
Hans Recter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,226
Latest member
uatas12

Latest Threads

Top