473,388 Members | 1,340 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

multiple submits ww.authoring.html

comp.infosystems.www.authoring.html
multiple submits

When multiple submit lines are placed in an HTML form, the string returned
to the server shows the name=value field for each one with no obvious way
to determine which one was actually clicked/pressed. ie, all are returned.

Does anyone know how to implement multiple submit lines and tell which one
was clicked?

Google's home page shows two submit lines for their "Google search" and "I'm
Feeling Lucky" selections, but how a server seperates them, isn't apparent.

Hul

--
- for email, put the word "keeper" in the subject line -
Mar 9 '06 #1
4 1433
Hul Tytus wrote:
comp.infosystems.www.authoring.html
multiple submits

When multiple submit lines are placed in an HTML form, the string returned
to the server shows the name=value field for each one with no obvious way
to determine which one was actually clicked/pressed. ie, all are returned.


What is a "submit line"? Do you mean "submit button"? Only the button
that was clicked is returned to the server.

Example:

<form action="multisubmit.asp" method="post">
<p>
<input type="text" name="text1" value="Hello">
</p>
<p>
<input type="submit" name="button1" value="Push 1">
<input type="submit" name="button2" value="Push 2">
<input type="submit" name="button3" value="Push 3">
</p>
</form>

I click button2. The string sent is:

text1=Hello&button2=Push+2
Mar 9 '06 #2
By submit line I meant submit button, as you surmized. The result that a
Lynx browser caused was, in reference to your example,
....&button1=press1&button2=press2&button3=press3" .

Any idea of what in the html code would causes this? Perhaps this typical
of the Lynx browser?

Hul

Harlan Messinger <hm*******************@comcast.net> wrote:
Hul Tytus wrote:
comp.infosystems.www.authoring.html
multiple submits

When multiple submit lines are placed in an HTML form, the string returned
to the server shows the name=value field for each one with no obvious way
to determine which one was actually clicked/pressed. ie, all are returned.
What is a "submit line"? Do you mean "submit button"? Only the button
that was clicked is returned to the server. Example: <form action="multisubmit.asp" method="post">
<p>
<input type="text" name="text1" value="Hello">
</p>
<p>
<input type="submit" name="button1" value="Push 1">
<input type="submit" name="button2" value="Push 2">
<input type="submit" name="button3" value="Push 3">
</p>
</form> I click button2. The string sent is: text1=Hello&button2=Push+2

Mar 9 '06 #3
Hul Tytus wrote:
By submit line I meant submit button, as you surmized. The result that a
Lynx browser caused was, in reference to your example,
...&button1=press1&button2=press2&button3=press3".

Any idea of what in the html code would causes this? Perhaps this typical
of the Lynx browser?

Hul
Please don't top-post. As you can see, writing out of order makes it
hard to follow the conversation.

It's strange, because my Lynx on Windows sends the same string as my
Firefox did earlier.

Harlan Messinger <hm*******************@comcast.net> wrote:
Hul Tytus wrote:
comp.infosystems.www.authoring.html
multiple submits

When multiple submit lines are placed in an HTML form, the string returned
to the server shows the name=value field for each one with no obvious way
to determine which one was actually clicked/pressed. ie, all are returned.


What is a "submit line"? Do you mean "submit button"? Only the button
that was clicked is returned to the server.


Example:


<form action="multisubmit.asp" method="post">
<p>
<input type="text" name="text1" value="Hello">
</p>
<p>
<input type="submit" name="button1" value="Push 1">
<input type="submit" name="button2" value="Push 2">
<input type="submit" name="button3" value="Push 3">
</p>
</form>


I click button2. The string sent is:


text1=Hello&button2=Push+2

Mar 9 '06 #4
Harlan - thanks again for the info. The cause turned out to be the code on
the server that recieved the string. By the time the string was put on the
disk, the other submit buttons had been added.

Hul

Harlan Messinger <hm*******************@comcast.net> wrote:
Hul Tytus wrote:
comp.infosystems.www.authoring.html
multiple submits

When multiple submit lines are placed in an HTML form, the string returned
to the server shows the name=value field for each one with no obvious way
to determine which one was actually clicked/pressed. ie, all are returned.
What is a "submit line"? Do you mean "submit button"? Only the button
that was clicked is returned to the server. Example: <form action="multisubmit.asp" method="post">
<p>
<input type="text" name="text1" value="Hello">
</p>
<p>
<input type="submit" name="button1" value="Push 1">
<input type="submit" name="button2" value="Push 2">
<input type="submit" name="button3" value="Push 3">
</p>
</form> I click button2. The string sent is: text1=Hello&button2=Push+2

Mar 10 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Marc | last post by:
Hello, I have a self - submitting form with multiple submits and I want to detect after the submit which button is pressed. Code example: <form name="example" method="post"...
1
by: Elf M. Sternberg | last post by:
This is driving me nuts. I don't want to have to do hokey Javascript magic to make it go away, so please, help me. I have a form with two SUBMIT buttons three lines of TEXT inputs... but pressing...
2
by: David Pautler | last post by:
I'm creating a web-based authoring tool where one form encompasses several sections for editing. I'd like each section to have its own reset button, so that use of that button affects only that...
2
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/newsgroup-faq Posting-Frequency: once a week Last-modified: 2004-07-26 Version: 2.00 URL: <http://css.nu/faq/ciwas-mFAQ.html> Maintainer: Jan Roland Eriksson...
5
by: Phil Powell | last post by:
I cannot fathom this one.. for some cracked reason, one of my forms is totally OK and the other is apparently nonexistent according to both HTML and Javascript. The second form never submits...
6
by: RobR | last post by:
We have a customer using our application that has a problem. Within our app, we have a two different forms (one generates an email, the other a fax via a webservice). When they click the submit...
3
by: spolsky | last post by:
hi, it is possible to apply multiple styles as shown in the following example. <STYLE TYPE="text/css"><!-- BODY { background-color:salmon; } P { margin-left:20px; } .clsCode {...
14
Plater
by: Plater | last post by:
I'm going to stab myself in the face. I have a page with a single form. Regular old html. There are a few checkboxes and textboxes and and two submit buttons (I hope that's not the issue...) The...
4
by: henry | last post by:
Folks: As a follow-up to my recent posts, I want to ask some more general questions about multiple instances of a CSS link in a page as seen by browsers due to server-side file inclusion. Let...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.