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@xxxxxxxxx> wrote: > i used your exit too,yes it's better to hide the form after registration:) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php