The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

POST Problem with PHP and CPanel

Discussion in 'User Experience' started by Sleazylou, Jan 16, 2003.

  1. Sleazylou

    Sleazylou Registered

    Joined:
    Aug 1, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    I had heard the wrapper does have errors.
    Are you using $_POST[yourvar] ?
     
  3. Sleazylou

    Sleazylou Registered

    Joined:
    Aug 1, 2002
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    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&
     
Loading...

Share This Page