473,748 Members | 8,530 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

why does get append to url, "&Submit.x=42&S ubmit.y=10" or "submit=sub mit"

I changed my POST to GET and find appended to the url, the above string.
Why and what can I do to NOT have them appended?

Thanks.
Jul 17 '05 #1
7 5294
Change back to POST. If you know the difference between the GET method and
the POST method you will understand why.

--
Tony Marston

http://www.tonymarston.net
"NotGiven" <no****@nonegiv en.net> wrote in message
news:jh******** ******@bignews1 .bellsouth.net. ..
I changed my POST to GET and find appended to the url, the above string.
Why and what can I do to NOT have them appended?

Thanks.

Jul 17 '05 #2
*** NotGiven wrote/escribió (Mon, 16 Aug 2004 07:59:17 -0400):
I changed my POST to GET and find appended to the url, the above string.
Why and what can I do to NOT have them appended?


It's added by browser when you submit on an <input type="image"> element, I
believe there's nothing you can do except changing the way the form is
submitted.
--
-- Álvaro G. Vicario - Burgos, Spain
-- Questions sent to my mailbox will be billed ;-)
--
Jul 17 '05 #3
"NotGiven" <no****@nonegiv en.net> wrote in message
news:jh******** ******@bignews1 .bellsouth.net. ..
I changed my POST to GET and find appended to the url, the above string.
Why and what can I do to NOT have them appended?

Thanks.


If the URL appends "submit=sub mit" that means you have a named submit
button. If you take away the name="submit" part out of <input type="submit"
name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
However if you're using <input type="image" ...>, the browser automatically
adds two parameters when the form is submitted. Those two are
[submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
(x,y) location of the user's mouse cursor when s/he clicked the submit
button image. Again, I'm pretty sure you can take away the name="submit"
attribute of the <input type="image"> tag and eliminate the problem.

- JP

Jul 17 '05 #4
"NotGiven" <no****@nonegiv en.net> wrote in message
news:jh******** ******@bignews1 .bellsouth.net. ..
I changed my POST to GET and find appended to the url, the above string.
Why and what can I do to NOT have them appended?

Thanks.


If the URL appends "submit=sub mit" that means you have a named submit
button. If you take away the name="submit" part out of <input type="submit"
name="submit" value="submit"> , "submit=sub mit" will not show up in the URL.
However if you're using <input type="image" ...>, the browser automatically
adds two parameters when the form is submitted. Those two are
[submit_button_n ame].x and [submit_button_n ame].y. These parameters show the
(x,y) location of the user's mouse cursor when s/he clicked the submit
button image. Again, I'm pretty sure you can take away the name="submit"
attribute of the <input type="image"> tag and eliminate the problem.

- JP
Jul 17 '05 #5
.oO(NotGiven)
I changed my POST to GET and find appended to the url, the above string.
Why
A browser adds all successful form controls to the URL when submitting
the form. This may include the submit-button that was used for
submission.

17.13.2 Successful controls
http://www.w3.org/TR/html4/interact/...html#h-17.13.2
and what can I do to NOT have them appended?


Is it a problem?

Micha
Jul 17 '05 #6
not a problem - just cumbersome to read

"Michael Fesser" <ne*****@gmx.ne t> wrote in message
news:s0******** *************** *********@4ax.c om...
.oO(NotGiven)
I changed my POST to GET and find appended to the url, the above string.
Why


A browser adds all successful form controls to the URL when submitting
the form. This may include the submit-button that was used for
submission.

17.13.2 Successful controls
http://www.w3.org/TR/html4/interact/...html#h-17.13.2
and what can I do to NOT have them appended?


Is it a problem?

Micha

Jul 17 '05 #7
NotGiven wrote:

not a problem - just cumbersome to read


Why did you switch from POST to GET if you didn't understand the
difference? It isn't like this is a big secret.
Jul 17 '05 #8

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

Similar topics

23
5682
by: ian justice | last post by:
Before i post actual code, as i need a speedyish reply. Can i first ask if anyone knows off the top of their head, if there is a likely obvious cause to the following problem. For the moment i've reduced my form request to a simple text string entry, instead of my desired optional parameters. As i have been stuck with a single unfathomable glitch for over a year. Basically, if i enter queries such as ; "select * from table" "select * from...
2
8125
by: Laermans_k | last post by:
Hi, Does anyone have a solution to use the <input type="file" id="filechooser"> and the <input type="submit" id="submitbutton"> in 1 button click? I've already tried to create a javascript function behind the submitbutton click. In this function i call the filechooser.click() event and after this i call the functions to activate the progressbar of the upload. This doesn't seems to work:(
3
1947
by: rh | last post by:
I have a Button on a WinForm that has a text property = "&Submit". I noticed that whenever I pressed the "S" key only (without pressing the "Alt" key) the Button's click event would fire. I thought that it was only supposed to fire if the combo "Alt+S" was pressed. My problem is that I have another control (a DataGrid) that is suppoed to respond to the "S" key being pressed and I don't want the Button's click event to be fired. I only...
0
2257
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional assistance. I say additional because I've already had help which is greatly appreciated. I do try to take the time and understand the provided script in hopes on not having to trouble others on those. But here it goes...
5
20015
by: Alex Maghen | last post by:
In ASPX 2.0 with MasterPages and all that, my entire page only has one actual <FORM>. But there are several different sections of the page that provide what are functionally separate forms with separate Submit buttons. In basic HTML, I can have multiple forms on a page and the browser knows that if any of the fields for Form A have the focus, then pressing ENTER will send a Click to the submit button for Form A. Same for Form B, etc. ...
2
6672
by: kilo | last post by:
Hey.. I need someone hwo can help me making my sql table.. I have no php skills. I have payed for a php program that shoud make dictation for people that have some problems reading danish.. with sound and text.. When I'm making the dictation with PHP I'm getting an error like this.: Query failed (SELECT word FROM repository): Table 'test_dig_dk.repository' doesn't exist the first one of the php, that I soud use for makeing the text is.. ...
1
3206
by: zaidalin79 | last post by:
I am in a JavaScript class, and we have to get all of our code to validate at the w3c website... Here is my code, it does what I want it to do which is require the user to enter the name and either the address of the email address, but when I try to validate it through w3c, I get the following errors... Can anyone help? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
14
4358
by: confusedfusion | last post by:
Not sure how many form submissions that have been lost over the years before I started but the company has a contact form that the required fields when validation fails the error message is going into the URL string on a refresh of the form page. I am very green on CF and CFM files and have this code below; I need to help for the error messages to "pop up" in a new window or display on the body of the page so anyone filling out the form knows...
2
4307
by: bips2008 | last post by:
The code seems to work fine in other browser but in IE it throws this error. This is very urgent for me and any help would be greatly appreciated For your convienence i have posted the code for the file. The portion that is not working is the star rating part <?php session_start(); include_once('includes/host_conf.php'); include_once('includes/db_connect.php'); include_once('includes/mysql.lib.php');...
0
8989
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9537
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9367
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
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
8241
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...
0
6073
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
4869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3309
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
2780
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.