Im making a form like so: but when i add an extra line of code such as this; <form method="POST" action="buy-submit.php"> It throws the whole page out of wack in dreamweaver? Is there a simple solution to adding this extra line of code <form method="POST" action="buy-submit.php"> somewhere oin the form without it making the tables and doc in dreamweaver go all over the place
I would not call the opening form tag an extra line of code. It is an essential line of code. The code you have given opens with a <td> tag so I assume it is an excerpt from the page. I am certain that in order to solve a layout problem that you would need to supply the entire page code. If the above is not the case and the code given is supposed to be complete... try this instead...
You can't do that, the <form> and </form> tags need to be outside of any other tags, that means tables and tr and td and th, typically you would <form action="whatever" method="post"> <table> <tr> <td><input type="text" name="whoever" /></td> </tr> </table> </form> do that
Thanks for being such a great help there krakjoe, Your last post cleared my whole problem, but now I have added a secondary form added to the same one, and not sure if the form has been seperated properly in my code? becuse again is all over in dreamweaver. Can you suggest what part of the code i need to seperate?
<tr> <td width="223" valign="top"> <!-- you'll notice I started the form just above the table --> <form method="POST" action="sell-submit.php"> <table width="220" height="630" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="223" height="273" valign="bottom" background="images/left.gif"><div align="center"> <table width="180" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td><div align="center"> <input type="text" name="email" onFocus="this.value=''" value="Email Address"> </div></td> </tr> <tr> <td><div align="center"> <input type="text" name="biz_type" onFocus="this.value=''" value="Business Type"> </div></td> </tr> <tr> <td><input type= image src="images/go2.gif" value="Submit" name="sell_submit"></td> </tr> </table> </form> <!-- and I'll finish it right underneath that same table tag --> </div></td> </tr> <tr> <td height="22"> </td> </tr> <tr> <td height="317" valign="bottom" background="images/left2.gif"><div align="center"> <form method="POST" action="buy-submit.php"> <table width="180" border="0" align="center" cellpadding="3" cellspacing="0"> <tr> <td><div align="center"> <input type="text" name="email" onFocus="this.value=''" value="Email Address"> </div></td> </tr> <tr> <td><div align="center"> <input type="text" name="biz_type" onFocus="this.value=''" value="Business Type"> </div></td> </tr> <tr> <td><div align="center"> <input type="text" name="budget" onFocus="this.value=''" value="Budget"> </div></td> </tr> <tr> <td><div align="center"> <input type="text" name="location" onFocus="this.value=''" value="Location"> </div></td> </tr> <tr> <td><input type= image src="images/go2.gif" value="Submit" name="buy_submit"></td> </tr> </table> </form> </div></td> </tr> </table> HTML: