wmkconn Posted March 14, 2003 Share Posted March 14, 2003 I have recently had a very strange problem with POST not working but GET working fine. I had developed some script for printing out Bill of Ladings. The first screen was a pull down where the user selects which BOL he wants to print then the subsequent page (after hitting submit) was the dynamically created PDF file. This worked great on Apache 1.3 but not on Apache 2.0 until I switched my Form submit from POST to GET after that, everything worked fine. I even tried using the superglobal to access the POST vars but this didn\'t work. The rest of the script saw the variables fine (verified with DIE($variable) However, none of the variables send via POST were accessible within the PDF page. Trust me, I tried everything and nothing worked until I changed the method to GET then everything worked fine. What the heck could be the problem. I don\'t need to use POST here, but down the road I may need to on some other script. Please do not send any newbie responses. Quote Link to comment https://forums.phpfreaks.com/topic/227-php-43apache-2044pdflib-problem-with-post-vs-get/ Share on other sites More sharing options...
effigy Posted March 15, 2003 Share Posted March 15, 2003 - check in the httpd.conf configuration file for a restrictive POST setting - crank up your php error reporting to see if gives you an error when you use POST - check apache\'s error_log for anything regarding POST - try $_POST[\'var_name\'] and $HTTP_POST_VARS[\'var_name\'] - were these compiled or pre-packaged? Quote Link to comment https://forums.phpfreaks.com/topic/227-php-43apache-2044pdflib-problem-with-post-vs-get/#findComment-670 Share on other sites More sharing options...
wmkconn Posted March 15, 2003 Author Share Posted March 15, 2003 I can access POST variables fine except within my PDF functions. I do not have problems when using Apache 1.3 but I do with Apache 2.0.44. The weird thing is that any new variable that is dependent upon the POST variable will not work either although my IF conditional statements work fine based on the POST variable. I did use the Superglobals as stated earlier (i.e. _POST and HTTP_POST_VARS) didn\'t change a thing. Why would this only cause a problem withing the PDF functions and only when using APACHE 2.0 I have review my conf file but didn\'t see anything. Any suggestions on where to look? All programs were precompiled Win32 binaries. Quote Link to comment https://forums.phpfreaks.com/topic/227-php-43apache-2044pdflib-problem-with-post-vs-get/#findComment-673 Share on other sites More sharing options...
effigy Posted March 15, 2003 Share Posted March 15, 2003 i suggest checking the bugs on www.apache.org or www.php.net ... search and see if something is reported, if not give them as much information as possible and see if they can assist you. Quote Link to comment https://forums.phpfreaks.com/topic/227-php-43apache-2044pdflib-problem-with-post-vs-get/#findComment-674 Share on other sites More sharing options...
ystrigathe Posted March 17, 2003 Share Posted March 17, 2003 Netscape & Post worked, but on IE I had the same problems... Thanks for this article - after hours of searching (and giving up all hope) - I got it. Quote Link to comment https://forums.phpfreaks.com/topic/227-php-43apache-2044pdflib-problem-with-post-vs-get/#findComment-693 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.