473,378 Members | 1,312 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Form submit on load

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

Jul 20 '05 #1
2 15367
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

"Hans Recter" <hr********@hotmail.com> wrote in message
news:3f********@news.iconz.co.nz...
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

Jul 20 '05 #2
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

"Stuart Palmer" <tr**********@youcant.com> wrote in message
news:N7************@newsfep3-gui.server.ntli.net...
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

"Hans Recter" <hr********@hotmail.com> wrote in message
news:3f********@news.iconz.co.nz...
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


Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Matt | last post by:
I want to submit the form to the server without opening another page. When we do the following, it will submit the form data in myform to the IIS, and open page2.asp. <form name="myform"...
2
by: Halldór Ísak Gylfason | last post by:
In my application I have an iframe that is empty (and not visible) initially, however when a user presses a button a form is programmatically submitted and the target is set to the IFrame. I...
3
by: earl | last post by:
Hey Say I have two <form> on a page like this : <form action="private.asp" method="post" name="form1"> // code <input type=submit value="submit" name="submit"> </form> <form...
5
by: ken | last post by:
I have a XML file as below ---------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" standalone="yes"?> ...
5
by: cmc_dermo | last post by:
I have a form that has a select list. A user chooses a value and the page refreshes showing the selected value in the dropdown box. So I want to use Javascript to get the selected query from...
0
by: 42 | last post by:
I implemented a simple class inherited from Page to create a page template. It simply wraps some trivial html around the inherited page, and puts the inherited page into a form. The problem I...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
16
by: NathyZif | last post by:
I know I know, why would I want to submit the form from server-side code, if the only way to get to the server-side code was BY submitting the form. But that's just it, when the code-behind...
0
by: hellopraveen30 | last post by:
Here is my form lap and i want to submit data of this form to another form ("http://www.lapkokcasuals.net/jobs/Apply.aspx") without going their how can i do it ihave written these code below data is...
2
by: sbettadpur | last post by:
Hi everybody, Hi iam strugling with more than one submit buttons with in one form here is my code <form method="post" action="Offer.php" name='issueFrm' onSubmit="return fullOfferfields();">...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.