Hi all -
I'm fairly new to PHP, and I've hit upon a dilemma that I can't solve. I probably don't need to post code, as this is more of a conceptual question than a syntax issue.
I have an update form which loads initial values from the database, allows the user to change any values, then posts the changes to the database. The problem I have is that I want to redirect to a "view" page after the update is complete so that the user can verify the changes were made.
As I understand it, I have to put a hidden field in the form, and then the "UPDATE..." code at the bottom of the page, in order to capture the new values. But if I do that, I can't use the
header ("Location: ...)
command to redirect to a new page afterwards. How do I capture the new values for the UPDATE command, and still redirect the user with the header command?
Any ideas?
Bill