POST Problem with PHP and CPanel

Sleazylou

Registered
Aug 1, 2002
3
0
151
I've added some PHP to a few pages of my skin. The problem is that CPanel isn't getting the headers from forms that use the POST method. GET seems to work fine but I don't really want passwords etc. being passed via the URL.

I tried always_populate_raw_post_data = 1 in php.ini and I can see the raw post header using var_dump but the CPanel Wrapper still doesn't seem to see it.

Anybody know a solution? All help apprieciated.
 

rbmatt

Well-Known Member
Oct 21, 2002
211
0
166
I had heard the wrapper does have errors.
Are you using $_POST[yourvar] ?
 

Sleazylou

Registered
Aug 1, 2002
3
0
151
rbmatt,

The php i've added has nothing to do with the form (ie i'm not using the values from the form) It would appear though that if a form action has a .php action then php alters the headers so that $_POST[foo] is populated.

If the form action is .html then everything works fine, but of course I can't use php on the result page then :(

Thanks for your reply.

&edit& I can confirm though that $_POST[foo] is populated. &/edit&