Re: insert to table in php scripts
| From: | Lester Caine | Date: | Sat, 28 May 2011 07:52:48 +0000 |
| Subject: | Re: insert to table in php scripts | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313189@lists.php.net to get a copy of this message | ||
Negin Nickparsa wrote:
I have a code that i get the $_POST's result and then insert them in tables of Mysql it can run without error but it'll insert in the table twice and i don't know why. when I click the submit then with array_key_exists I go to if statement and insert it. i'll show the code if someone have time helping me.Consistently adding twice? Or occasionally? I STILL hit problems where people double click a button and the submit happens twice, and have to do some javascript to prevent that since the php end is too late. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk// Firebird - http://www.firebirdsql.org/index.php