Re: Using PHP to POST a form (and go to the page)?
| From: | jeremy brand | Date: | Thu, 07 Dec 2000 00:10:00 +0000 |
| Subject: | Re: Using PHP to POST a form (and go to the page)? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29003@lists.php.net to get a copy of this message | ||
> I want to use PHP to create some POST vars and post to a given page
> with the browser going to that page. I've seen some posts here (like
> Rasmus' post) and a code snippet on Zend that use fsockopen() and
> fputs() to post some variables to a page, but the browser never
> actually goes to the receiving page. Unless I've used them wrong...
>
> What I want is the browser to act as if the the user had actually
> posted the form himself.
>
> Anyone know how I can do this?
Simulate your post, like the code you describe as having, with
fsockopen, then send a header('Location: http://somewhere') to the
page at which you want to end up.
-jeremy brand
Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: jeremy@nirvani.net
http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html
for more
Get your own Free, Private email at http://www.smackdown.com/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
At least for the people who send me mail about a new language that
they're designing, the general advice is: do it to learn about
how to write a compiler. --Dennis Ritchie