Hi there,
I have a script that was working very well until I introduced $HTTP_SERVER_VARS.
It's very long so here's what it does:
It displays the contents of a MySQL table, giving the user the option to edit each item. The edit returns the user to the same page to complete a form which also returns to the same page.
The script identifies what it's required to display by the contents of the $id string which is set depending on the actions of the user.
That all works fine.
I thought it would be useful if the MySQL table recorded who had last altered or entered a particular piece of data, without trusting people to fill in their names. The page is in a secure part of the site.
The script welcomes the user to the page by name which works fine using:
$yourname = ucwords($HTTP_SERVER_VARS["REMOTE_USER"]); and echoing $yourname at the appropriate point.
I then try to use $yourname after the user has entered data which is submitted using a form (on the same page) which includes:
<input name="yourname" type=hidden value="<?php echo $yourname ?>">
as soon as they hit the submit button, $yourname is lost.
how can I keep this variable?
Julia