You are here: Re: php and Javascript « PHP Programming Language « IT news, forums, messages
Re: php and Javascript

Posted by bill on 01/06/08 13:44

Ken wrote:
> I am trying to run two form.submit() in sequence when clicking on <input
> image... ..."try this"
>
> When calling send() with only invoice.submit active, the form invoice works
> correctly.
>
> When calling send() with only setTimeout("transfer.submit()", 10000), the
> form transfer works correctly.
>
> When both are active, the php script runs and sends an email but the
> transfer.submit does not work.
>
> Data is entered in invoice and forwarded in transfer.
> I left out some script to simplify the posting.
>
> Suggestions would be appreciated. I have spent the entire day trying
> different things with no success.

You can not reliably submit a form twice or two forms from one
client. It depends on how fast the client is and how fast the
net is. Once you submit the first form, you may or may not still
have a client present when the second form is to be sent.

This is something best handled on the server side.
bill

 

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

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