> I am trying to submit two forms at once.

Khe? As I know, it isn't possible. If you send them to the same
action, just use one form for all the fields. If you send them to
separated actions (different action attribute), you have to made two
request at the same time, but there isn't something like
multithreading in JavaScript/WebBrowser ;-)
It can works if you will use AJAX to submit values.

> The first form is being submitted by "onclick" event which calls javascript
> form.submit()

An the request goes... and browser is waiting for response

> and the second form is submitted by submit button itself when
> it is clicked. The first form submission is failing i.e when I try to
> retrieve the values of the first form later in the application it is blank.

And probably, the second request override the first one, that's why
you got blank form.

> It is working on local machine but not on production server. Can there be
> some network latency issue?

Did you try access your local machine from other computer? Web browser
can behave differently base on localhost address, it allows for more
for localhost, than for remote address. Try to access your local
version from some other computer.

> Is there a better way to submit two forms?

AJAX


Regards
-- 
Lukasz
http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to