Issues with POST between included pages - PHP noob
Posted: Thu Apr 22, 2010 5:56 pm
Hello all:
I am an ASP/ASP.Net/C# desktop developer who is brand-spanking new to PHP. I have inherited an app. that a client had purchased and there seems to be some issue with one section.
The app uses a shell page (index.php) that dynamically includes other pages based on some params. One of the included pages has a form on it that *should* allow the user to delete some data, but absolutely nothing happens when submitted.
I debugged and found that a key variable was never being assigned any data so the code could never run. Next I found that the variable is not assigned because, it seems, the POST collection is empty even after a form submit.
The form, inside the included page, is pretty standard. It informs the index.php shell that it needs to include the keywords.php page:
< form action="index.php?q=keywords" method="POST" >
The shell page reads the querystring collection just fine and creates the correct include page as a result, but on the include page the POST always reads as empty. No variable set to a POST element ever has data. Is there any issue in sending a POST between an included and including page?
Thanks
Kurt
I am an ASP/ASP.Net/C# desktop developer who is brand-spanking new to PHP. I have inherited an app. that a client had purchased and there seems to be some issue with one section.
The app uses a shell page (index.php) that dynamically includes other pages based on some params. One of the included pages has a form on it that *should* allow the user to delete some data, but absolutely nothing happens when submitted.
I debugged and found that a key variable was never being assigned any data so the code could never run. Next I found that the variable is not assigned because, it seems, the POST collection is empty even after a form submit.
The form, inside the included page, is pretty standard. It informs the index.php shell that it needs to include the keywords.php page:
< form action="index.php?q=keywords" method="POST" >
The shell page reads the querystring collection just fine and creates the correct include page as a result, but on the include page the POST always reads as empty. No variable set to a POST element ever has data. Is there any issue in sending a POST between an included and including page?
Thanks
Kurt