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 2 of 2
  1. #1
    New Coder
    Join Date
    Aug 2014
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Why is being inside of a table making my form code not work?

    So I'm using Gordon Blair's template/tutorial to make a contact form for my page, and if I completely isolate it, and make a dummy page with just <html><body>the form code and</body></html>, I get a working form, but the minute I put it inside of a table for the graphic-intensive layout I've got going, it stops working.

    Over here I've uploaded a page with just the table and the form code isolated; the code looks like this:

    <HTML>
    <BODY>

    <TABLE WIDTH=406 BORDER=0 CELLPADDING=0 CELLSPACING=0>
    <TR>
    <TD background="images/2.9.jpg" WIDTH=268 HEIGHT=328 ><img src="images/contact.png" width="128" height="38" style="margin-top:0px; margin-left:45px ">
    <div style="margin-top:0px; margin-left:45px; width:172px; height:250px; overflow:auto "><table width="147"

    <form action="contact.php" method="post">
    Name<br>
    <input type="text" name="cf_name" style="width:155px"><br>
    e-mail<br>
    <input type="text" name="cf_email" style="width:155px"><br>
    Message<br>
    <textarea name="cf_message" style="width:155px"></textarea><br>
    <input type="submit" value="Send">
    <input type="reset" value="Clear">
    </form>
    </td>
    </tr>
    </TABLE>

    </BODY>
    </HTML>
    The problem I'm getting is that when I push either of the buttons, nothing happens. It works completely fine when its outside of the table, but inside it doesn't do a damn thing. Can anybody see what's pissing it off here? I'm using the base PHP file Blair provides in the tutorial, the only changes made to it right now being that the default email has been switched out for my own.

  • #2
    New Coder
    Join Date
    Aug 2014
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Never mind. Found it right after I finished posting. Is there a button to mark this solved?


  •  

    Posting Permissions

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