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.
no subject
Date: 2008-12-04 06:50 pm (UTC)no subject
Date: 2008-12-04 07:06 pm (UTC)no subject
Date: 2008-12-04 07:21 pm (UTC)Historically, there have been a few ways to read form variables in PHP, and the behavior of some of these have changed with newer PHP versions. This is probably not the problem, but since the symptom is that form variables are missing, it seems like a possibility.
no subject
Date: 2008-12-04 07:56 pm (UTC)no subject
Date: 2008-12-04 08:20 pm (UTC)