473,804 Members | 2,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple submits ww.authoring.ht ml

comp.infosystem s.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 1447
Hul Tytus wrote:
comp.infosystem s.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="multisu bmit.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&but ton2=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=pr ess1&button2=pr ess2&button3=pr ess3".

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.infosystem s.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="multisu bmit.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&but ton2=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=pre ss1&button2=pre ss2&button3=pre ss3".

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.infosys tems.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="multisu bmit.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&b utton2=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.infosystem s.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="multisu bmit.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&but ton2=Push+2

Mar 10 '06 #5

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

Similar topics

5
7774
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" action="/test.php"> <input type =submit name="add"> form elements but also <a href="#" onClick=document.myForm.submit()>edit</a>
1
2005
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 in any of them causes the form to act as if the first SUBMIT button was pressed. I'm seeing this in Mozilla 1.1 and IE 6.0. I thought the convention was that == SUBMIT if and only if the form consisted of a single TEXT input.
2
2174
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 section. I can't find anything in the 4.0 spec about how to do this, and the only mention in this group I found is from 1998 below (CERN blocked my email to Alan). I've tried wrapping each section in its own fieldset, but that had no effect.
2
2767
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 <rex@css.nu> comp.infosystems.www.authoring.stylesheets meta-FAQ v2.00 _______________________________________________________________________
5
2245
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 nor does Javascript recognize it as existent. Here is the code. The form named "contactsForm" is the one that fails, and I've been at it for hours with no way of fathoming why this form not only does not submit but remains unrecognized AS a...
6
3529
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 button, IE6 is generating the event 6 times!!! So they end up sending 6 faxes or 6 emails. We simply cannot reproduce this. We can't find anything wrong in our code that might cause this, I can't find anything in MS Technet about IE bugs that...
3
2048
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 { font-family:"Comic Sans MS"; font-size:10pt; color:navy;}
14
3819
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 form submits to itself (I control the backend so I handle it) When I click the submit button, the form is submitted and I get my page back with a "form submitted" text in a certain place. As SOON as it finishes loading, it automatically submits...
4
2411
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 me set up my question by providing skeleton code for two files: Here's a skeleton of "index.php": <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
0
9571
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10302
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7608
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5639
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4277
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.