Hi all
My first posting so please bare with me.
o/s = xp
php5, myqsl 4.1, apache 2
I have a small form for creating a new user. The page is setup to display the form for 3 possible situations:
1 first visit to page
2 if user name already exists in db
3 if any fields are empty
The form action selects "check.php" for authorised session, existing user or empty fields. If all is ok the data is inserted in the db, else it returns to the form page with a variable sent with the URL which if set builds the correct form with a message to show the problem.
Now, the problem is I can no longer see the values of the $_POST array. I need these to add the values to the text fields to prevent re-typing by the user(except for password). I have found a way of getting the values by assigning them to variables in the check.php page and sending them with the URL i.e.
header("Refresh: 5; URL=form.php?ataken=$ataken&btaken=$btaken etc but i'm sure this is not the correct method.
Is it possible to assign the $POST to $SESSION variables in the check.php page and some how kill them after the db has been updated?
Hope this makes sense. Any suggestions will be greatly received.
Many thanks
(Great site!)