|
-
Jul 4th, 2005, 04:13 PM
#1
Thread Starter
Hyperactive Member
Sending extra data for no reason.
Hi, I have a form which is coded like this:
HTML Code:
<head>
<title>The DWS Network</title>
</head>
<body bgcolor="#000000" text="#00FF00" alink="#00FF00">
<p>Welcome <?php echo $fn;?></p>
<p>Please select you'r Bandwidth(Speed of internet)</p>
<form name="input" action="/home/win/1.php" method="get">
<input type="radio" name="bw" value="bb" checked> Broadband (128Kbps or Higher)
<br>
<input type="radio" name="bw" value="dup"> Dial-Up (64Kbps or Lower)
<input type="hidden" name="uid" value="<?php echo $uid ?>">
<input type="hidden" name="pw" value="<?php echo $pw ?>">
<input type="image" name="B1" src="/images/submitbutton.jpg">
<p>Click <a href="/login/?page=/home/win/bandwidth.php">Here</a> to Login before you make you'r bandwidth choice</p>
</form>
</body>
</html>
And it sends to a php file named 1.php but i don't need to send that file because it is the form that is puzzling because it is sending extra data. The extra data is "B1.x=105&B1.y=47"
If there is only one perfect person in the universe, does that make them imperfect?
-
Jul 4th, 2005, 07:20 PM
#2
Fanatic Member
Re: Sending extra data for no reason.
-
Jul 5th, 2005, 12:08 AM
#3
Re: Sending extra data for no reason.
Those are the coordinates of where the mouse click occured over your image button.
-
Jul 5th, 2005, 04:36 AM
#4
Thread Starter
Hyperactive Member
Re: Sending extra data for no reason.
how do i stop it sending the cordinates?
If there is only one perfect person in the universe, does that make them imperfect?
-
Jul 5th, 2005, 04:57 AM
#5
Re: Sending extra data for no reason.
You can't unless you make it a hyperlink.
-
Jul 5th, 2005, 10:51 AM
#6
Thread Starter
Hyperactive Member
Re: Sending extra data for no reason.
If there is only one perfect person in the universe, does that make them imperfect?
-
Jul 5th, 2005, 09:10 PM
#7
Re: Sending extra data for no reason.
Because they're using a submit button and not an image. They've applied classes on it. Take a look at their source code.
You do have another option though, change the form's method to post instead of get.
-
Jul 6th, 2005, 08:24 AM
#8
Re: Sending extra data for no reason.
Simply remove the name attribute from the image and you're fine...
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Jul 6th, 2005, 09:51 AM
#9
Re: Sending extra data for no reason.
-
Jul 6th, 2005, 09:53 AM
#10
Re: Sending extra data for no reason.
One of the disadvantages of trying to write "complete" HTML, eh?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|