Re: Forming HTTP Header to POST
| From: | Kevin Stone | Date: | Tue, 08 Oct 2002 16:35:49 +0000 |
| Subject: | Re: Forming HTTP Header to POST | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119294@lists.php.net to get a copy of this message | ||
Doh! Sorry.. that would be $_GET['action'] as Chris specified. :P
-Kevin
----- Original Message -----
From: "Kevin Stone" <kevin@helpelf.com>
To: "Paul Kaiser" <paukai@illinimedia.com>; <php-general@lists.php.net>
Sent: Tuesday, October 08, 2002 10:33 AM
Subject: Re: [PHP] Forming HTTP Header to POST
> With register_globals off you will be accessing the query string variable
> with, $_GET['add_event']
> Or if you send through a POST request, $_POST['add_event']
>
> You can simulate posting a form by opening an HTTP socket connection and
> sending the POST request manually. Search for the posttohost() function
on
> Google or this mailing list.. you'll find dozens of references. Although
in
> your case I doubt you will be needing it.
>
> -Kevin
>
> ----- Original Message -----
> From: "Paul Kaiser" <paukai@illinimedia.com>
> To: <php-general@lists.php.net>
> Sent: Tuesday, October 08, 2002 10:17 AM
> Subject: [PHP] Forming HTTP Header to POST
>
>
> > Greetings,
> >
> > With register_globals off, I can no longer call specific functions form
my
> > PHP script by linking text/graphic as such:
> >
> > http://www.mysite.com/mydb/myevts.php?action=add_event
> >
> > What I need to do, of course, is get "add_event" sent in something like
a
> > POST command. I could make a page with a bunch of forms / buttons / etc.
> > but this is ugly.
> >
> > With the header() function, shouldn't I be able to make an HTTP header
> > that would simulate POSTing from a form?
> >
> > Or is there some other way I can simulate POSTing from a form?
> >
> > My goal is for the user to be able to click on what appears to be an
> > ordinary link (text or picture) and have that click "POST" my
> > action=add_event to myevts.php.
> >
> > Any ideas?
> > Thanks,
> > Paul Kaiser
> >
> > --
> > Illini Media: 265-9844
> > Home: 351-8149
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>