Submit Form with PHP/cURL

I want PHP/cURL to submit values (method=post) to a remote form located at

<input type="hidden" name="check" value="2007-11-09 T 11:20 UTC">
LVL 16
Who is Participating?
marchentConnect With a Mentor Commented:

    $url = "";
    $param = "check=2007-11-09 T 11:20 UTC";
    curl_setopt ($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $param);
    $html = curl_exec ($ch);
    curl_close ($ch);
    echo $html;

Open in new window

???... what's the question... what are you trying to do exactly??
hankknightAuthor Commented:
I want to submit data from one remote server to another remote server.

I want server "A" to submit data to server "B" through a web-based form.

I want to use PHP/cURL to do this.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.