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"
Re: Sending extra data for no reason.
Re: Sending extra data for no reason.
Those are the coordinates of where the mouse click occured over your image button.
Re: Sending extra data for no reason.
how do i stop it sending the cordinates?
Re: Sending extra data for no reason.
You can't unless you make it a hyperlink.
Re: Sending extra data for no reason.
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.
Re: Sending extra data for no reason.
Simply remove the name attribute from the image and you're fine...
Re: Sending extra data for no reason.
Re: Sending extra data for no reason.
One of the disadvantages of trying to write "complete" HTML, eh? :afrog: