Current location: Hot Scripts Forums » Programming Languages » ASP » SubmitAll button, which submit all forms on the page.


SubmitAll button, which submit all forms on the page.

Reply
  #1 (permalink)  
Old 10-19-04, 06:34 AM
al22 al22 is offline
New Member
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Exclamation SubmitAll button, which submit all forms on the page.

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
Reply With Quote
  #2 (permalink)  
Old 10-19-04, 12:02 PM
nurasto nurasto is offline
New Member
 
Join Date: Oct 2004
Location: Jakarta
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
My suggestions is separate the processes. Create one more page, that is the best way.

Btw, r u implementing "membership" feature? if yes, display a login page if the user not yet logged other display the "form2". It will save your time to code
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classified Ads skipper23 Perl 3 11-22-05 02:22 AM
Submit button on forms civrob PHP 4 08-10-04 04:22 PM
submit button tcooper JavaScript 1 07-15-04 02:22 AM
HELP!! Multiple forms on one page??? tcooper PHP 5 07-03-04 08:59 PM
Classified Ads skipper23 Perl 2 12-30-03 03:43 AM


All times are GMT -5. The time now is 03:10 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.