Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    May 2011
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts

    How can I remove the space

    Hi friends

    I writing one application in PHP for that I need one form with four field so i have write below HTML form code everything is working fine but I am getting 3 blank row before the table in browser......

    So please let me know I can I remove these three blank rows those are appearing before table.


    Code:
    <form action='xilinxint.php' method='GET'><table border=1>
    <tr><td>Input First Person's Speed</td><td> <input type='text' name='num1'>Unit</td><br></tr>
    <tr><td>Input Second Person's Speed</td><td><input type='text' name='num2'>Unit</td><br></tr>
    <tr><td>Input Third person's Speed</td><td><input type='text' name='num3'>Unit</td><br></tr>
    <tr><td>Input Forth Person's Speed</td> <td><input type='text' name='num4'>Unit</td></tr>
    <tr><td></td><td><input type='submit' name='Submit'></td></tr></table>
    </form>

    Thanks

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,029
    Thanks
    23
    Thanked 589 Times in 588 Posts
    Replace your first line of code with

    <form action="xilinxint.php" method="get"><table border="1">

    and remove all the '<br>'s

  • Users who have thanked sunfighter for this post:

    kotak86 (07-03-2011)

  • #3
    New Coder
    Join Date
    May 2011
    Posts
    16
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thank you....

    Space was removed only by removing <br> ....

    what is logic of putting file name and method name in double quote.......instead of single quote....

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,029
    Thanks
    23
    Thanked 589 Times in 588 Posts
    what is logic of putting file name and method name in double quote.......instead of single quote....
    No difference
    But you had

    method='GET'><table border=1>
    The border=1 should be in quotes and the GET should be in small letters. Just to be 100% correct.

    The double quotes comes from my editor, I personally use the single when I'm writing everything out.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •