Solved

Use php to submit a form then parse the resulting page

Posted on 2010-09-06
2
309 Views
Last Modified: 2012-05-10
Hey all. I'm looking to create a php page which submits a form on another website then parses through the resulting page. I looking for something similar to fopen() but in which I can submit form fields. Is this possible?

Sorry if my explanation is a bit confusing, I'm finding it pretty difficult to figure out an easy way of explaining it.

Thanks in advance for any help recieved.
0
Comment
Question by:Chris
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 8

Accepted Solution

by:
pvlier earned 500 total points
ID: 33612430
You can use curl to do this if available on your server. You can find all info here:
http://hungrycoder.xenexbd.com/general/how-to-submit-a-form-using-php-curl-fsockopen.html 
0
 
LVL 12

Author Comment

by:Chris
ID: 33612439
Perfect! Just found it a couple of seconds ago actually. You may have the points though :-)

Cheers for the help.
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

627 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