Deep Geek - Apache/php question
Dec. 4th, 2008 01:47 pmI'm certain that various things work - for example all the admin pages work, the PHP test page that causes it to dump its environment works, and the databases are all present and data accounted for.
The problem seems to be in using a PHP page as the target for a form submit.
The situation is that I have A.PHP which connects to MySQL and selects from certain tables to build a form (HTML dropdowns). Those are built and presented properly so I know PHP is connecting to the database alright and that the first SELECT statement runs as it should.
The fields are in a form, the target of which is B.PHP. When I submit the form, Apache shows me B.PHP, but its contents are empty. Using printf() statements I can see that the form variables it is trying to examine are null, and so it never runs the DB query that it should be using to populate its contents.
Question: is there something I have to tweak in the Apache conf files or somewhere in order for PHP pages to work properly as the targets of forms?
EDIT TO ADD: A.PHP and B.PHP are unchanged from the previous installation, in which they worked correctly. What's changed is the underlying Apache and MySQL servers, which is why I suspect it's some kind of configuration or permissions issue.