When you access /foo, the server will redirect the client to /foo/
(because it is a directory). At the redirected page, the post data will
not be sent again by the browser thus there are no _POST values.
Try using action="/foo/". That may work.
Yes, /foo/ does work.
The explanation makes sense.
Hi,
Monday, January 10, 2005, 12:04:28 PM, you wrote:
JI> I just narrowed something down about forms and POST and would like
JI> education. In the following scenarios, all work except #4. $_POST is
JI> null. Why is that?
JI> Setup:
JI> 1) Running on localhost
JI> 2) /foo/index.php has the follo
uot;James (IFMS)" <[EMAIL PROTECTED]>
To:
Sent: Monday, January 10, 2005 10:04 AM
Subject: [PHP] PHP form POST question
I just narrowed something down about forms and POST and would like
education. In the following scenarios, all work except #4. $_POST is null.
Why is that?
Setup:
I just narrowed something down about forms and POST and would like
education. In the following scenarios, all work except #4. $_POST is
null. Why is that?
Setup:
1) Running on localhost
2) /foo/index.php has the following:
3) /index.php contends vary per scenario (below)
Running RHEL 3, all
4 matches
Mail list logo