#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0

    Please let me correct


    <form name="contactform" method="post" action="send_form_email.php">
    <table width="450px" align="center">
    <tr>
    <td valign="top">
    <label for="first_name">First Name *</label>
    </td>

    <td valign="top">
    <input type="text" name="first_name" maxlength="50" size="30">
    </td>
    </tr>

    <tr>
    <td valign="top">
    <label for="last_name">Last Name *</label>
    </td>
    <td valign="top">
    <input type="text" name="last_name" maxlength="50" size="30">
    </td>
    </tr>

    <tr>
    <td valign="top">
    <label for="email">Email Address *</label>
    </td>
    <td valign="top">
    <input type="text" name="email" maxlength="80" size="30">
    </td>
    </tr>

    <tr>
    <td valign="top">
    <label for="telephone">Telephone Number</label>
    </td>

    <td valign="top">
    <input type="text" name="telephone" maxlength="30" size="30">
    </td>
    </tr>

    <tr>
    <td valign="top">
    <label for="comments">Comments *</label>
    </td>

    <td valign="top">
    <textarea name="comments" maxlength="1000" cols="25" rows="6">
    </textarea>
    </td>
    </tr>

    <tr> <td colspan="2" style="text-align:center">
    <input type="submit" value="Submit">
    </td>
    </tr>
    <tr>
    <tdcolspan="2" style="text-align:center">
    <input type="reset" value="Clear">
    </td>
    </tr>
    </table> </form>




    and I get this result I tried it many time but still get not a result that I really want. I want to set Clear button right to submit button.
    Last edited by wilson230; August 2nd, 2012 at 02:41 AM. Reason: to add a word
  2. #2
  3. No Profile Picture
    Permanently Banned
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2012
    Posts
    8
    Rep Power
    0
    you can better describe your requirements ?
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0
    ohhh sorry I post all the code I should not do it
    Anyways i want to set clear button alignment in a form very right to Submit button.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2011
    Location
    Sydney Australia
    Posts
    178
    Rep Power
    83
    You are missing a space between <td and colspan
    Originally Posted by wilson230
    Code:
                 <tr>  <td colspan="2" style="text-align:center">   
                 <input type="submit" value="Submit">
                   </td> 
                   </tr>
    <tr>
    <tdcolspan="2" style="text-align:center">
    <input type="reset" value="Clear">
    </td>
    </tr>
    But if you use this code in place of yours you'll get the two buttons along side of each other.
    Code:
    <tr> <td colspan="2" style="text-align:center">
    <input type="submit" value="Submit">&nbsp;
    <input type="reset" value="Clear">
    </td>
    </tr>
  8. #5
  9. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2012
    Posts
    13
    Rep Power
    0
    Thanks for your help

IMN logo majestic logo threadwatch logo seochat tools logo