Re: PostToHost

From: Date: Fri, 16 Mar 2001 00:47:10 +0000
Subject: Re: PostToHost
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44181@lists.php.net to get a copy of this message
I scratched my head for weeks with this problem untill I found a discussion on this in the archives. It seems that a post-form MUST be executed from the client side. Here is the start of the discussion: http://marc.theaimsgroup.com/?l=php-general&m=97614760211168&w=2 So... It has to be done with JavaScript... Just a tip: Check out the cURL-functions in the manual. They do the stuff that the Post-to-Host does, but much much more... Regards, // Tobias Talltorp ""Boget, Chris"" <Chris.Boget@wild.net> wrote in message news:4040BBE81A9AD411BD27009027887A7C042B6D@tiger.wild.net... > After hours of searching :/ I was able to find Rasmus' > PostToHost() function. It's working fine, for the most > part. It's posting to the page and printing what it gets > back as part of the page/code that calls the function. > This is most likely expected behavior, just not what I > expected. > However, I'm curious if there is a way to POST data to > a page WHILE redirecting the browser to that particular > page. You can do this, _sort of_, client side with JavaScript > (OnClick = document.form.submit();) I'm wondering > if there is a way you can do this server side with PHP? > > Thanks. > > Chris >

« previous php.general (#44181) next »