hi negin, do you get duplicate inserts into both tables? if yes, try an 'exit();' right after the success message; echo "you have been registered successfully!"; exit(); this will stop the script after the message, and you wont see the form either. at this point check the tables for duplicate records. if there are no duplicates, you are closer to the solution. ~viraj On Sat, May 28, 2011 at 1:31 PM, Negin Nickparsa <nickparsa@xxxxxxxxx> wrote: > I click the submit button just one time! not twice > but when i go to MySql and select * from it > it shows me happening two times > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php