Doh!  Sorry.. that would be $_GET['action'] as Chris specified.  :P
-Kevin

----- Original Message -----
From: "Kevin Stone" <[EMAIL PROTECTED]>
To: "Paul Kaiser" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
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" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> 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
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to