473,405 Members | 2,310 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,405 software developers and data experts.

unwanted varables in GET string..

Hello Group,

I have a small problem I dont seem to be able to fix.

When I have a form which sends data using GET to an ASP page, it addes X & Y
into the get string URL

see below

http://www.test.co.uk/JOBS1/people/r...d=41&I1.x=9&I1.
y=12

the bit I dont want it &I1.x=9&I1.y=12

I1 is the name of the image I use as the send button, and the x & y seems to
be where I click on the image, but it just makes my URLs looks messy and
confusing.

Has anybody else had this problem, how do I fix it

Cheers

Graham Mattingley
Jul 19 '05 #1
5 1674
Gazing into my crystal ball I observed "Graham Mattingley"
<gr****@technocom.com> writing in
news:bl*******************@news.demon.co.uk:
Hello Group,

I have a small problem I dont seem to be able to fix.

When I have a form which sends data using GET to an ASP page, it addes
X & Y into the get string URL

see below

http://www.test.co.uk/JOBS1/people/r...t_id=41&I1.x=9
&I1. y=12

the bit I dont want it &I1.x=9&I1.y=12

I1 is the name of the image I use as the send button, and the x & y
seems to be where I click on the image, but it just makes my URLs looks
messy and confusing.

Has anybody else had this problem, how do I fix it

Cheers

Graham Mattingley


There is no way around that. That kind of form control always sends the x
& y coordinates. If you don't want the x & y coordinates, use a regular
submit button, or use the post method instead of get.

--
Adrienne Boswell
Please respond to the group so others can share
http://www.arbpen.com
Jul 19 '05 #2
Graham Mattingley wrote:
Hello Group,

I have a small problem I dont seem to be able to fix.

When I have a form which sends data using GET to an ASP page, it
addes X & Y into the get string URL

see below

http://www.test.co.uk/JOBS1/people/r...d=41&I1.x=9&I1. y=12

the bit I dont want it &I1.x=9&I1.y=12

I1 is the name of the image I use as the send button, and the x & y
seems to be where I click on the image, but it just makes my URLs
looks messy and confusing.

Why not clear the name property of the image element? If it needs to be
referred to in client-side code, you can use its id property. As you're
discovering, all named elements are included in the GET.

Bob Barrows
Jul 19 '05 #3
"Graham Mattingley" wrote:

When I have a form which sends data using GET to an ASP page, it
addes X & Y into the get string URL...

...the bit I dont want it &I1.x=9&I1.y=12...

...I1 is the name of the image I use as the send button, and the
x & y seems to be where I click on the image, but it just makes
my URLs looks messy and confusing.


1. Who cares about the URL? When you go to the following URL, does it affect
your browsing experience when additional session-specific data is added to
the end?

http://www.amazon.com/exec/obidos/tg...l/-/1591098149
2. If you really must eliminate the x & y, stop using <INPUT TYPE="image">.
You can accomplish the same functionality in this manner:

<A HREF="" ONCLICK="document.myForm.submit();return false">
<IMG BORDER="0" ...></A>

FWIW, zeroing the BORDER attribute isn't necessary in IE, but some other
browsers will insert a border unless you do. And NN4 does not recognize
ONCLICK for IMG -- hence the anchor tags.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms. Please do not contact
me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.
Jul 19 '05 #4
glue a piece of paper over the offending entry in the address bar

lo-tech, but it works

Jason

"Dave Anderson" <GT**********@spammotel.com> wrote in message
news:Oj*************@TK2MSFTNGP11.phx.gbl...
"Graham Mattingley" wrote:

When I have a form which sends data using GET to an ASP page, it
addes X & Y into the get string URL...

...the bit I dont want it &I1.x=9&I1.y=12...

...I1 is the name of the image I use as the send button, and the
x & y seems to be where I click on the image, but it just makes
my URLs looks messy and confusing.
1. Who cares about the URL? When you go to the following URL, does it

affect your browsing experience when additional session-specific data is added to
the end?

http://www.amazon.com/exec/obidos/tg...l/-/1591098149
2. If you really must eliminate the x & y, stop using <INPUT TYPE="image">. You can accomplish the same functionality in this manner:

<A HREF="" ONCLICK="document.myForm.submit();return false">
<IMG BORDER="0" ...></A>

FWIW, zeroing the BORDER attribute isn't necessary in IE, but some other
browsers will insert a border unless you do. And NN4 does not recognize
ONCLICK for IMG -- hence the anchor tags.
--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of this email address implies consent to these terms. Please do not contact me directly or ask me to contact you directly for assistance. If your
question is worth asking, it's worth posting.

Jul 19 '05 #5
"jason kennedy" wrote:

glue a piece of paper over the offending entry in the address
bar

lo-tech, but it works


It even ports to all browsers.

--
Dave Anderson

Unsolicited commercial email will be read at a cost of $500 per message. Use of
this email address implies consent to these terms.
Jul 19 '05 #6

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

Similar topics

5
by: Ron Brennan | last post by:
Good morning. I want to send split to a String such as " abc def " and receive back an Array with the two elements String(abc) and String(def); and I want to receive back a zero-length...
4
by: David Beck | last post by:
I donwnload some files for processing every day that have unwanted characters in them. In VB6 I use the InputB to read in the text and the StrConv. vLinesFromFile =...
3
by: Jim Bob | last post by:
I have a character Data field coming in such as 06-1460-2 40 5000 55 5 50-4-55-6445 I need to strip the dash, blanks or any other non numeric character from this field and return just the...
16
by: lovecreatesbeauty | last post by:
/* When should we worry about the unwanted chars in input stream? Can we predicate this kind of behavior and prevent it before debugging and testing? What's the guideline for dealing with it? ...
3
by: et | last post by:
How can I strip out unwanted characters in a string before updating the database? For instance, in names & addresses in our client table, we want only letters and numbers, no punctuation. Is...
4
by: vvenk | last post by:
Hello: I have a string, "Testing_!@#$%^&*()". It may have single and double quotations as well. I would like to strip all chararcters others than a-z, A-Z, 0-9 and the comma. I came across...
1
by: sethsirijaya | last post by:
I already did the following things for my program; #include<iostream> #include<string> . . . string S; Problem...in my Visual Studio2003.net won't take string variables.It won't even...
1
by: COHENMARVIN | last post by:
I have a string with an unwanted unicode character. It looks like an 'A' with a tilde on top. I looked up a unicode chart on the internet and the chart says that its represented by  So I think...
0
by: Alexey Smirnov | last post by:
On Jul 10, 11:03 pm, Alexey Smirnov <alexey.smir...@gmail.comwrote: Sorry, the one with a tilde on top is Â
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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,...
0
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...

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.