Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Active Server Pages (ASP)
Expertise: Beginner
Sep 3, 1999

Posting Two Forms Simultaneously

Question:
I have an HTML page containing two forms. One form uploads an image file and needs to have an encryption type set while the other sends a plain set of request objects. The pages need to have their 'action' set to separate pages and I can't seem to trigger both forms with one button.

Answer:
You cannot trigger the submission of two forms at the same time. Only the first submission will actually occur. You can solve this issue in one of two ways—with client-side script or with server-side processing. With client-side script, you need to copy the contents of the "other" form into the current form and then submit the current form. With server-side script, you can access all the form elements and take action accordingly. If anyone knows of a different solution, I would love to hear it.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date