Results 1 to 10 of 10

Thread: Sending extra data for no reason.

  1. #1

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    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?

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: Sending extra data for no reason.

    lets see your php code
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Sending extra data for no reason.

    Those are the coordinates of where the mouse click occured over your image button.

  4. #4

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    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?

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Sending extra data for no reason.

    You can't unless you make it a hyperlink.

  6. #6

    Thread Starter
    Hyperactive Member dandono's Avatar
    Join Date
    Aug 2004
    Location
    Cornwall, UK
    Posts
    485

    Re: Sending extra data for no reason.

    how come msn search can?
    If there is only one perfect person in the universe, does that make them imperfect?

  7. #7
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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.

  8. #8
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.

  9. #9
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Sending extra data for no reason.

    Damn...

  10. #10
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width