[Last Call] Learn how to a build a cloud-first strategyRegister Now


php form automation

Posted on 2004-11-30
Medium Priority
Last Modified: 2008-02-01

Is there anyway i can automate a form with php so it automatically submits the form with out hitting the submit button?

Thanks Paul
Question by:submissiontechnology
  • 3
  • 3
LVL 27

Accepted Solution

Diablo84 earned 2000 total points
ID: 12705505
You can do this with html depending on exactly how you want it to work, eg: the following uses the body onload event (so it will be submitted as soon as the page loads):

<body onload="document.form1.submit()">

<form action="a.php" method="post" name="form1">
<input type="text" name="test" value="text">
<input type="submit" name="Submit">


Author Comment

ID: 12705783
Ok cool

But how could I submit the form with out going to the next page? ie streem the data
LVL 27

Expert Comment

ID: 12705847
You might need to use curl for what you are doing which requires you to have the curl package installed on your server, see:


Theres an example of use here: http:Q_20743403.html
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Author Comment

ID: 12705882
yeah I have used that b4 thanks

Author Comment

ID: 12705916
Any got any examples of how i would do it with curl?
LVL 27

Expert Comment

ID: 12706078
Theres a nice example/tutorial here: http://www.phpfreaks.com/print.php?cmd=tutorial&tut_id=49

If you need more example of use i will let someone with more experience with curl help you out.

Best Wishes.

Expert Comment

ID: 12717578
What do you want to trigger the submit?

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses
Course of the Month18 days, 3 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question