Hey everyone,
First of all, thanks for such an awesome community, I have a passion for PHP and I love to see such a large community full of people who are similar to me!
Here's my code snippet:
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://formtogoto.com/form.asp");
// Do a POST
$data = array('var1' => 'FALSE', 'var2' => '2');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// grab URL, and return output
$output = curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
$output = strtoupper($output);
echo $output;
Now, I am trying to be able to manipulate the OUTPUT so that it doesn't look like the webpage that I am POSTing to.. I would like to make everything uppercase, in this case..
When I run this script, I see the whole webpage (not in uppercase) and the number "1" at the very bottom (which is not on the original form that im POSTing to)..
What the heck am I doin' wrong?
Thanks in advance..
-Ryan