Re: insert to table in php scripts
| From: | viraj | Date: | Sat, 28 May 2011 16:23:27 +0000 |
| Subject: | Re: insert to table in php scripts | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313212@lists.php.net to get a copy of this message | ||
hi nigen,
the intention of that 'exit' was to stop the script temporarily to
avoid any second time inserts. i think you better figure-out what
caused your script to insert same data twice in a single form post.
to hide the form, 'exit' is not the best option. there are several
different ways, one simple method the 'header' function.
http://www.php.net/manual/en/function.header.php
~viraj
On Sat, May 28, 2011 at 1:50 PM, Negin Nickparsa <nickparsa@gmail.com> wrote:
> i used your exit too,yes it's better to hide the form after registration:)