and the above call makes a GET method of submission.
What I would like to know is that how does one make a POST type of submission via Php? So for example after user clicks on the Submit button and creates a POST event, then I need to collect a bunch of information, make a bunch of calculations and make a bunch of MySQL updates and then call another page via POST, and the method must be POST, to do its job.
(If I’m reading this correctly…) You cannot do what you describe there, it’s not a PHP issue it’s just how the web works. I would question why you feel the need to forward on the POST request at all, millions of websites get along just fine without being able to do so. (:
Actually Salathe, it is quite possible. I have a script which one of my servers logs into another (by POSTing the data for the login form).
@WorldNews You use the CURLOPT_POSTFIELDS option (check the curl_setopt function) to set the values you send in. You haven’t replied back to this, which probably means you read the note mentioned by guido which shows this stuff.