Re: post variables
| From: | julian haffegee | Date: | Thu, 19 Feb 2004 13:32:42 +0000 |
| Subject: | Re: post variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-178238@lists.php.net to get a copy of this message | ||
Hi all,
I solved this today. It seems odd.
If you define an action it DOES NOT work, but if you skip that entirely the
POST variables are sent!
so
<form method='POST'> works
<form method='POST' action ='something.php'> doesn't work.
Why would this be?
thanks
Jules
----- Original Message -----
From: "julian haffegee" <jules@killi.co.uk>
To: <php-general@lists.php.net>
Sent: Wednesday, February 18, 2004 1:58 PM
Subject: Re: [PHP] post variables
>
> Hi Chris
>
> print_r($_REQUEST); (is this what you mean by HTTP Request?)
> print_r($_POST);
> print_r($_GET);
>
> all give Array()
>
> its apache release 10327100 (is that what you mean?)
>
> If I change the form method to GET works, and we get
>
> REQUEST: Array ( [username] => aa [password] => aa )
> _GET: Array ( [username] => aa [password] => aa )
> _POST: Array ( )
>
>
>
>
> > Do you have a way to capture the raw HTTP? I'd like to see:
> >
> > 1. The HTTP Request
> > 2. The output of print_r($_POST)
> > 3. What Web server you're using (and version)
> >
> > With this, I feel certain that we can figure something out.
> >
> > Chris
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php