Dear All
Can any one help me with the following problem, please?
I am trying to get PHP 4 (running as a module under Apache 1.3.14) to access $HTTP_POST_VARS. Specifically, the php produces a listing of users and phone numbers, by querying a MySQL database. Each entry on the page has an edit link which if selected produces a form allowing the user to edit the entry and then update it. So far so good.
When the submit button is pressed the fields on the form are supposed to snet to an array. The code for the array is in a seperate file (common.inc) and the submit button uses $PHP_SELF to reload the page. From there the entries in the array are used in an sql query to update the datbase. However it appears the array is not being populated and therefore blank entries are being placed in the database. I'm assumimg that the code to poulate the array is not being run, but don't understand why.
The strange thing is that the code is an edited version of a different version which runs fine. The only difference between the two files is that the one which works only has one field to update while the new one has five. Also the new one reads in a style sheet. I can see no reason why the new one doesn't work and the old one does.
I wasn't sure if it was ok (or even necessary) to include the files in this message but can do that if this would help.
Many thanks
Paul