drwex: (Default)
[personal profile] drwex
Thanks to the spot-on suggestion from Dr Memory I've gotten Apache, php, and MySQL installed and running now.


I'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.

Profile

drwex: (Default)
drwex

July 2021

S M T W T F S
    123
45678910
11121314151617
1819 2021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 10th, 2026 01:43 pm
Powered by Dreamwidth Studios