Re: Using PHP to POST a form (and go to the page)?
| From: | Toby Butzon | Date: | Thu, 07 Dec 2000 00:24:05 +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-29007@lists.php.net to get a copy of this message | ||
If you're looking to do a completely transparent (to the user anyway) POST,
you can return a blank page (containing a hidden form) with a little
javascript that should do the trick. Since it's outside the PHP realm, I'm
going to spare the list - email me if you're interested.
Toby Butzon
[ criticism spurs improvement ]
----- Original Message -----
From: "jeremy brand" <jeremy@nirvani.net>
To: "Jay Beaton" <jrb@leagueoffice.com>
Cc: <php-general@lists.php.net>
Sent: Wednesday, December 06, 2000 7:20 PM
Subject: Re: [PHP] Using PHP to POST a form (and go to the page)?
: Yes HTTP_POST_VARS will be empty (or non-existant rather). If you
: want HTTP_POST_VARS to be not empty, then then actually have to POST!
:
: :)
: -jeremy brand
:
: > No, that'll send the user to the page, but not as if they had just
: > POSTed a form to that page (i.e. $HTTP_POST_VARS will be empty).
: >
: >
: > Thanks,
: > JRB
: >
: > jeremy brand <jeremy@nirvani.net> wrote:
: > >
: > > > 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
: >
: > --
: >
: > ls
: >
: > --
: > PHP General Mailing List (http://www.php.net/)
: > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
: > For additional commands, e-mail: php-general-help@lists.php.net
: > To contact the list administrators, e-mail: php-list-admin@lists.php.net
: >
: >
:
:
: --
: PHP General Mailing List (http://www.php.net/)
: To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
: For additional commands, e-mail: php-general-help@lists.php.net
: To contact the list administrators, e-mail: php-list-admin@lists.php.net
:
: