http://www.m2m.at Hi,I have a problem with Double submission in html forms.I am using PHP as the server side scripting language, i have found ameans to capture the second form submission while the first formsubmission is still in-progress. Basically, i can use sessions tocheck if the first submission is active and reject subsequent submits.***I do not want to try any client side solution(such as disablingsubmit button) as hitting F5 on the screen will re-post the dataagain.My question is :(*) if i send some kind of output to the browser telling the userthat a previous session is active, then how do i ensure that the firstform submission''s output is displayed to the user on the browserwindow?I tried, print messages like- Please wait. But somehow the first formsubmission''s output is not printed...I am guessing the browser closesthe connection after the second submission''s output is received andfirst submission has no where to send the output.I hope, i have been able to express my problem clearly.Please help!Raghu 解决方案I dont think it is possible.. if you only want to do it server sidethen the post has to complete and the resulting page has to loadbefore you can output anything to the screen.. since you are able tosee if there has been two submissions why not take them to an errorpage saying go back and dont hit submit twice this time..Flamer.I dont think it is possible.. if you only want to do it server sidethen the post has to complete and the resulting page has to loadbefore you can output anything to the screen.. since you are able tosee if there has been two submissions why not take them to an errorpage saying go back and dont hit submit twice this time..Flamer.- Hide quoted text -- Show quoted text -Hi,What if i have some DB Inserts/Updates which takes time ?That solutions sound little primitive and then again, if i take him toan error page, then the previous output does not come to the browser isuppose!Did you try disabling the submit button using JavaScript?good luckMartin------------------------------------------------online accounting on bash basesOnline Einnahmen-Ausgaben-Rechnung http://www.ea-geier.at------------------------------------------------m2m server software gmbh http://www.m2m.at 这篇关于刷新/双重提交问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 07-23 04:40