User Comments on 'Multiple submit buttons on a single form'
|
Posted by :
Archive Import (AMC) at 08:23 on Friday, August 09, 2002
|
Is missing some code as far as I can see
after
if(target == 2) document.myform.action="program3.jsp";
needs
document.myform.submit();
Otherwise didnt work in IE 5
| |
Posted by :
Archive Import (kamal) at 05:53 on Tuesday, September 10, 2002
|
Thanks a lot its really helps me a lot!!
Its really great!!
| |
Posted by :
Archive Import (Rob) at 08:45 on Wednesday, September 25, 2002
|
Excellent post! Thanks! Also thanks to AMC for the missing code!
| |
Posted by :
Archive Import (rajesh) at 05:08 on Friday, October 18, 2002
|
i would rate as best article displaying all the user needed. thanx buddy
| |
Posted by :
Archive Import (JC) at 01:32 on Saturday, November 09, 2002
|
Okay, what if you only want a single submit button on the form, that will take one to a different url, depending on what checkbox/choice was selected?
Example: if you are from state x, y, or z, submit sends you to url 1, but if you are from state a, b, or c, submit sends you to url 2?
(Not a programmer, just need a script like that to plug into a website.)
| |
Posted by :
Archive Import (ivy) at 22:55 on Friday, November 29, 2002
|
i have a problem. in a form, i have numerous submit buttons and textboxes. for example, submit button1 has a corresponding textbox1 until submit button9. what i want to do is that when submit button1 is clicked, it checks(form validation) if textbox1 is null or not. it should disregard the other textboxes. and the same thing should go for submit button2, 3...til 9.
what i've done so far is that when it clicks on submit button1, it checks if all textboxes(from 1 - 9) are null or not.
please help!!
please send your solutions / comments to my email address .... thank u!
| |
Posted by :
Archive Import (happypappy) at 12:46 on Thursday, December 05, 2002
|
This is giving me ideas, thanx. I am using 3GL code to build a web front-end for a mainframe application. User Info has to be entered and validated with databases then info is passed back to be verified. The "verify" screen should give the user some options; "BACK" "VALIDATE" "ACCEPT" based off a button.
"BACK" would go to PGMA
"VALIDATE" would go to PGMB (current)
"ACCEPT" would go to PGMC
Any mainframers out there tried this?
Yes this is cumbersome but it is what we have.
| |
Posted by :
Archive Import (Todd Bacon) at 11:40 on Friday, December 20, 2002
|
do you have a sample of this in vbScript? I'm not to comfortable with Java.
| |
Posted by :
Archive Import (afaque) at 15:25 on Friday, January 10, 2003
|
tell me plz where THe data can me mailed to some particular email id
while we click on submit button
is it possible
if yest then plz send me the code
bye
| |
Posted by :
Archive Import (dude) at 22:38 on Tuesday, March 04, 2003
|
onSubmit="return isReady(this)" doesn't seem to work without a type=submit button.
hence the form will submit without validating (IE 5.5)
totalboxes=count should be in function isReady, and the "count" argument should be in the function isReady(form) signature ie. function isReady(form, count)
| |
Posted by :
Archive Import (rob) at 11:20 on Wednesday, April 16, 2003
|
Hope this helps you afaque - providing CDONTS is enabled on your server it should.
(don't forget to do Call Sub :-) )
Sub SendEmail
Dim objMail
Set objMail = CreateObject("CDONTS.NewMail")
objMail.From = "You@YourMail.com"
objMail.To = VarRecipient
objMail.Subject = "Subject Of Mail"
objMail.Body = VarBodyOfEmail
objMail.Send
Set objMail = Nothing
End Sub
| |
Posted by :
Archive Import (Cheaca) at 23:49 on Tuesday, April 29, 2003
|
Are there any other ways besides sending the gathered data from your users to your e-mail? Does this always work? What are the other alternatives? Please help me... thanks heaps
| |
Posted by :
geekme at 19:58 on Tuesday, March 30, 2004
|
CJ above asked if anybody knew how to redirect form based on choices made in select boxes or radio buttons - did any body post a reply to hime someplace else?
I need to ask visitors to select check, creditcard or invoice and then, if they selected creditcard - redirect them to my verisign link but if they select anything else - I take them to an instructions page.
Can anybody help a newbie wanna be geek out?
| |
Posted by :
Micho at 14:27 on Tuesday, April 20, 2004
|
Brilliant - answered 2 of my questions. Thanks so much
| |
Posted by :
b_manish at 08:04 on Tuesday, March 15, 2005
|
1>I want to check if the dynamically generated check boxes are checked or not.
2>Based on this i want to add the records in database
| |
Posted by :
Mohit_Lohani at 04:19 on Saturday, March 04, 2006
|
Great code. Thanks are also due to fellow (AMC).His following snippet was vital for me:-
document.myform.submit();
Thanks to you all.
| |
Posted by :
JspSOS at 13:30 on Tuesday, January 30, 2007
|
Hey,
The code is a great help. In my Jsp page I am trying to Add ,Edit and delete users. For the ADD button I dont need to select any user profile. but in this code it gives back an alert saying that i have to select a checkbox. I need to go to the adduser.jsp page directly. how do i do it?
:)
as u see am still in the fledgling jsp stage.
| |
Posted by :
samburdge at 14:31 on Sunday, February 15, 2009
|
Here is a simple jQuery solution to the same problem: http://www.samburdge.co.uk/development/a-single-html-form-with-multiple-submit-buttons-changing-a-forms-action-attribute-using-jquery/
| |
Posted by :
GW at 13:26 on Thursday, February 19, 2009
|
Hi,
This person Kiran Pai is a fraud.He is using somebody Else's ideas to earn points. He is a lustful womaniser who is here in Uk to ruin innocent lives n homes. HE is already involved in a legal suit with wife in Inida where he has left wife n child to die.His parent G K Pai and Vasanthi Pai were also arrested for the same and a warrant is issued against Kiran for his misbehavior under Sec 498A of Indian Penal Code for Mental and Physical torture and dowry harassment.This person is a crrok and simply tryin to earn points so that he can apply for a HSMP visa and escape from his legal suit back in India.
| |
Posted by :
GW at 13:38 on Thursday, February 19, 2009
|
Hi
Guys i got news from very confidential source that Kiran Pai is working as a software architect with Williams Lea and is trying to fool people in believing all he says. He is known by all including his own father as an"ECCENTRIC" guy. He touches women in publictransports, on road and everywhere possible.Beware from this person.Wonder how a software engg cannot even spare his own maid in Mumbai, mother of 5 children .Dunno to what lowest degree can people bend where money is all they see. Imagine having a father with a PHD in Sanskrit and mothera BSC graduate who dunno that they alongwith son Kiran Pai are doing a Gender bias on grandaughter coz she is a GIRL CHILD. Sad but true that even Kiran's own sister kavita was thrown out of the house just becoz she was a GIRL CHILD. Now parents realized value wen son is not around in India and have taken shelter in her house after they were arrested.
| |
Posted by :
a_k at 10:30 on Tuesday, April 28, 2009
|
GW from the description it seems you are in some way related to Kiran Pai.
This is a technical site and you should only be giving technical input and should not wash your dirty linen in public.
And Mr. Kiran Pai........forget about multiple submit.now this form cannot have even a single submit.
| |