RE: Multiple submit buttons CGI question

2001-05-22 Thread Timothy Kimball
Aaron Craig wrote: : I believe multiple submit buttons only send off the information for the : form they are a part of. If you have multiple forms, clicking one submit : button will only get you that form sent off. This is true (unless you're into Javascript). However, a single form can have

RE: Multiple submit buttons CGI question

2001-05-22 Thread Peter Cornelius
>I believe multiple submit buttons only send off the information for the >form they are a part of. If you have multiple forms, clicking one submit >button will only get you that form sent off. But you can have more than one submit button per form. This is useful when you want something like,

RE: Multiple submit buttons CGI question

2001-05-22 Thread Aaron Craig
I believe multiple submit buttons only send off the information for the form they are a part of. If you have multiple forms, clicking one submit button will only get you that form sent off. At 10:18 22.05.2001 -0700, you wrote: >In the html: > > >the 'value' attribute just set's up what the bu

RE: Multiple submit buttons CGI question

2001-05-22 Thread Peter Cornelius
In the html: the 'value' attribute just set's up what the button text is, not a unique identifier for the button, so like tdk wrote, you need a name attribute to get the behavior you want.

Re: Multiple submit buttons CGI question

2001-05-22 Thread Timothy Kimball
Dave wrote: : Can any one tell where I went wrong here? : (I remember reading that a html form can have : multiple submit forms as long as you parse them : via their value) : ... : In the html: : These tags need a name attribute. Without it, the values will not be bound to a CGI parameter nam

Multiple submit buttons CGI question

2001-05-22 Thread David Gilden
Hello, Can any one tell where I went wrong here? (I remember reading that a html form can have multiple submit forms as long as you parse them via their value) Thanks! Dave - In the html: -- #!/usr/bin/perl $forminfo = ; @key_value_pairs = split(/&/,$forminfo); foreach $pair