note 44903 added to function.header
| From: | jdatfractalicedotc0m at osu1 dot php dot net | Date: | Thu, 19 Aug 2004 19:04:49 +0000 |
| Subject: | note 44903 added to function.header | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-74944@lists.php.net to get a copy of this message | ||
I'm having a problem when trying to submit some forms.
I have a link that puts the variable "action=new" in the titlebard, then reloads the page
and brings up the proper form.
When the form is submitted, it sends a variable "add" from a hidden field, and the code
searches for $_POST["add'] == "Add Entry" to execute the mysql insert. Keep in
mind that the address never changes, so the action is still seen as "new".
What I need to happen is after that insert, I need to send the user to a page that says that the
action was successful. So far, I have been unable to do this, as I can't submit a header and
setting variables isn't working. I tried to use another hidden field, but the parser read that
first and didn't do the insert. If anyone can help with a header method or give another method
I could use to redirect the browser after this insert, it would be greatly appreciated.
----
Manual Page -- http://www.php.net/manual/en/function.header.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44903
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44903&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44903&report=yes
Search -- http://master.php.net/manage/user-notes.php