POST doesn't work but GET does
I have a form and when I use POST to get the fields for use in another file, var_dump($_POST); is empty. Now if I change all occurrences of 'POST' to 'GET' everything works as it's supposed to and var_dump($_GET); returns the correct information. Why does POST not work and how can I fix this?
-
Hello @val98, This type of question is better suited for a website such as StackOverflow where coding discussions occur. If you're concerned it's related to an Apache configuration setting, check cPanel >> Errors when this happens to see if you notice any specific output: Errors - Version 70 Documentation - cPanel Documentation Thank you. 0 -
Hello @val98, Do you notice any output in cPanel >> Errors or in the error_log file within the document root of the script when observing this behavior? Also, do you have any rewrite rules added to the .htaccess file in the document root of the script, or in the public_html directory itself? If so, see if the issue persists upon temporarily disabling those rules. Thank you. 0 -
Hello @val98, Do you notice any output in cPanel >> Errors or in the error_log file within the document root of the script when observing this behavior? Also, do you have any rewrite rules added to the .htaccess file in the document root of the script, or in the public_html directory itself? If so, see if the issue persists upon temporarily disabling those rules. Thank you.
THANK YOU!!!!! One of the lines in my htaccess was causing the problem. Thanks for your help!0 -
Hello @val98, I'm happy to see the issue is now solved. Thank you for sharing the outcome. 0
Please sign in to leave a comment.
Comments
5 comments