$_POST does not pass in html form

Discussion in 'Apache' started by Jasontallone1234, Feb 3, 2011.

  1. #1
    Hi There

    I recently devaloped a web application where a user submits a for to clear data off his/her screen. The problem I am having is that the variables being sent by the form ($_POST) are not being sent to the next page, The strange thing is that sometimes it works perfectle (If I press the submit button for example, 10X after each other 1 will work and the other times no $_POST variable. It works perfectly on another system so I think it has something to do with my Apache setup, I just dont know what. I am using Apache 2.2, PHP 5, MYSQL 2.1 on a widows XP 2.8ghz dual core maching. Any assistance will be appreciated, Thanks
     
    Jasontallone1234, Feb 3, 2011 IP
  2. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please check and make sure you have your form set to method="POST"
     
    srisen2, Feb 3, 2011 IP
  3. Jasontallone1234

    Jasontallone1234 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    , Thanks for the qick reply, my form method is set to post, the strange thing is that sometimes it works.
     
    Jasontallone1234, Feb 3, 2011 IP
  4. Jasontallone1234

    Jasontallone1234 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Okay did some fault finding and discovered that if I disable "require valid-user" from me apache config file then it works perfectly everytime. Still dont know how to fix...please help. My settings are as follows:

    LoadModule sspi_auth_module modules/mod_auth_sspi.so

    AuthName "Authorised access only"
    AuthType SSPI
    SSPIAuth On
    SSPIOfferBasic On
    SSPIBasicPreferred off
    SSPIAuthoritative On
    SSPIDomain "my company name removed for security purpose"
    require valid-user

    Is there anything I am doing wrong, please let me know
    Thanks
     
    Jasontallone1234, Feb 6, 2011 IP
  5. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    it may have something to due with your php handler. If you use something like DSO then you have to use 777 permission for uploads this doesnt usually effect posts from my experience you may want to recompile apache with suphp as it will always from php as a valid user.
     
    srisen2, Feb 7, 2011 IP
  6. lkraj

    lkraj Greenhorn

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #6
    If it works sometimes, it is possible, it a case sensitive issue
    Use SSPIUsernameCase to eliminate case-sensitive typos of domain and username
     
    lkraj, Feb 8, 2011 IP
  7. Jasontallone1234

    Jasontallone1234 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    .

    Thanks for the response but I finally figured out what the cause of the problem was. In my apache config file i needed to add the line "SSPIPerRequestAuth On" as well. after i did that my script worked perfectly.

    its weird how that would affect the POST variable's
     
    Jasontallone1234, Feb 9, 2011 IP