Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Trouble submitting data via the POST method!!

Status
Not open for further replies.

jimtmelb1

Technical User
Sep 7, 2003
72
AU
I have created a static html page that has form data associated with it. I am using the POST method to submit this form. Currently the user needs to click on the Submit button to send this form and data to its destination.

Is there a way that I can send this html form along with the data to its detsination without the user having to click on submit. The html page will be called from a database and I want the form submitted automatically (no need to hit submit).

Any help will be much appreciated
Thanks
Jim
 
If I was tackling this problem I'd use a bit of javascript. I'd test to see if the form and been filled in and then submit it using Javascript. I not so much of an expert though so you might be better asking the question in the javascript forim.

However I am intrigued about why you would want to submit the form without the user hitting submit. Taking the decision out of the hands of the user may result in you having incomplete data

MrBelfry
 
Thanks for your replies.

The form is populated with data from a database. The user inserts the data in the database and then a html page is created. I don't want the user to click on submit. They are basically doing this when they click the button in the database.

Thanks
 
I'm confused now.

Is the person entering data into the database doing so via an HTML form? If so, they're going to have to have some kind of submit button, to tell the database that they've finished entering and want to submit a record.

The person viewing the data is just looking at an essentially static HTML page - no submit buttons involved. However, they may have needed to fill in and submit a form to select the record they want to see. Is that the submit button you're talking about? If so, how are they selecting that record? Typing in an ID? Selecting from a drop-down list? There are ways that it might be managed using Javascript.

-- Chris Hunt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top