Re: [PHP] uploading files | how to avoid submitting twice?

2002-02-25 Thread Krzysztof Kocjan
In JavaScript define varaible which is global for this page, name it like page_submited, by default set it to false. On submit event set this variable to true and then from JavaScript submit form. When user second time will try to submit the form do nothig, just leave function code. Your

[PHP] uploading files | how to avoid submitting twice?

2002-02-23 Thread Andy
Hi there, I would like to upload files using a form. Unfortunatelly it takes a while till the file is uploaded to the server. During this time the same page with the submit button is viewed. If the user clicks another time on the submit button, I get wrong records and sometimes the same file