You are here: Re: Refresh/Double Submit problem « PHP Programming Language « IT news, forums, messages
Re: Refresh/Double Submit problem

Posted by ABC on 05/07/07 05:52

On May 7, 10:08 am, "flamer die.s...@hotmail.com"
<die.s...@hotmail.com> wrote:
> On May 7, 4:44 pm, ABC <raghuana...@gmail.com> wrote:
>
>
>
>
>
> > Hi,
>
> > I have a problem with Double submission in html forms.
> > I am using PHP as the server side scripting language, i have found a
> > means to capture the second form submission while the first form
> > submission is still in-progress. Basically, i can use sessions to
> > check if the first submission is active and reject subsequent submits.
>
> > ***I do not want to try any client side solution(such as disabling
> > submit button) as hitting F5 on the screen will re-post the data
> > again.
>
> > My question is :
> > (*) if i send some kind of output to the browser telling the user
> > that a previous session is active, then how do i ensure that the first
> > form submission's output is displayed to the user on the browser
> > window?
>
> > I tried, print messages like- Please wait. But somehow the first form
> > submission's output is not printed...I am guessing the browser closes
> > the connection after the second submission's output is received and
> > first 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 side
> then the post has to complete and the resulting page has to load
> before you can output anything to the screen.. since you are able to
> see if there has been two submissions why not take them to an error
> page 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 to
an error page, then the previous output does not come to the browser i
suppose!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация