Re: php forcing a post??
| From: | Stut | Date: | Tue, 20 Feb 2007 21:20:23 +0000 |
| Subject: | Re: php forcing a post?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-249116@lists.php.net to get a copy of this message | ||
Peter Lauri wrote:
Or cURL: http://php.net/curlSeems like a lot of work to me, not to mention added complexity. I highly doubt there's anything you can do in PHP that you can't do in the CGI script. If you really must do this, the easiest way would be to have the CGI call out to a PHP script, rather than trying to intercept the request itself. Alternatively, do an AJAX request in the onsubmit for the form that does the PHP bit, and if the response is good, then post the form. -Stut
-----Original Message----- From: blackwater dev [mailto:blackwaterdev@gmail.com] Sent: Tuesday, February 20, 2007 9:45 PM To: php-general@lists.php.net Subject: [PHP] php forcing a post?? I currently have an html page that posts to a cgi function. I need to interject some php in the middle. So, the form will post to itself, the php page will catch the post, check on thing and then pass along to the cgi page but the cgi page only handles posts. How can I still php in the middle and still have it 'post' to the cgi page? Thanks!