Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 19th, 2004, 06:56 AM
Registered User
 
Join Date: Oct 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Al dasty Send a message via Yahoo to Al dasty
Default SubmitAll button, which submit all forms on the pa

Hi,
i have a small problem...
i have 2 forms(form1 and form2) on one page.
both form1 and form2 has submit buttons. which submits the data to the next page which is
Result.asp and i have some ASP code on Result.asp which gets the value from form1 and form2 separately.
So the submit button for form 1 transmits only username and password.
and submit button for form2 transmits the radio, checkbox, Muliple select list, single select list, and text area

Now i wanna add a button Submitt All which "submits all" that should count the no. of forms on this page which is mypage.asp


<mypage.asp>

<!-- form1>

<form action="Result.asp" method="post" name="form1" >


Username: <INPUT type=text2 maxLength=20 name="uname" size="20" value="" >
Password: <INPUT type=password maxLength=20 name="pass" size="20">

<CENTER><INPUT type="submit" value="Submit"/> </CENTER>

<!--form2->

<form action="Result.asp" method="post" name="form2" >

Radio
<INPUT type=radio CHECKED name=travel value=ByAir>By Air
<INPUT type=radio name=travel value=ByRoad>By Road
<INPUT type=radio name=travel value=ByShip>By Ship


checkbox
<INPUT type=checkbox name=spread value=Caribbean>Caribbean <BR>
<INPUT type=checkbox name=spread value=Hawaii>Hawaii <BR>


Multi List
<SELECT multiple size=3 name=MyList>
<OPTION value=comfort >comfort</OPTION>
<OPTION value=Luxury selected>Luxury</OPTION>
<OPTION value=party >party</OPTION>


Single list
<SELECT name="sList">
<OPTION value=1couple>1 couple</OPTION>
<OPTION value=familyof3>family of 3</OPTION>
<OPTION value=familyof4 selected>family of 4</OPTION>


Text Area
<TEXTAREA name=comments rows=6 wrap=virtual cols=30></TEXTAREA> </UL><BR>


<CENTER><INPUT type="submit" value="Submit"/> </CENTER>

........WANNA ADD SUBMIT ALL BUTTON HERE..............


thanx

 
Old October 19th, 2004, 01:21 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Why not have them all in a single form and use the values that are required/submitted to result.asp? That would be much easier/simpler.

_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Make a image button as default submit button toshi ASP.NET 1.0 and 1.1 Basics 1 June 1st, 2006 05:25 AM
Multiple forms one submit x_ray Classic ASP Basics 7 January 3rd, 2006 07:12 PM
cant submit forms rashmid PHP How-To 3 May 29th, 2005 04:34 PM
cant submit forms rashmid HTML Code Clinic 1 May 24th, 2005 05:33 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.