wimkerk
asked on
Trouble with my form
I am creating a form, and have some trouble with the last
table. Before I add it I can view the form in NN3 and IE4. After I add it, I can only see the form in IE4 (NN3 shows a blank screen).
Does anyone know how I can solve this problem?
I have also put the page on-line at:
http://members.xoom.com/wimkerk/form.html
Thanks
---------------------
<html>
<head><title></title>
</head>
<body>
<center>
<table border=0 width="600">
<tr><td width="70"> </td>
<td width="530">
<center>
<h2>Test</h2>
</center>
<p>
Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla.
<!-- Form -->
<form name="test" method="post">
<table border=0>
<tr><td width="220" valign=top>
Text field for one item:</td>
<td width="310" valign=top>
<input type="text" name="item1" size="30">
</td></tr>
<tr><td colspan=2> </td></tr>
</table>
<table border=1>
<tr><td colspan=3><center><font color=blue size=4>Some Sites</a></font>
</td></tr>
<tr><td width="175" valign=top><input type="checkbox" name="yahoo"> <a href="http://www.yahoo.com">Yahoo</a>
<br>
<input type="checkbox" name="Disney"> <a href="http://www.disney.com">Disney</a>
<br>
<input type="checkbox" name="infoseek"> <a href="http://www.infoseek.com">Infoseek</a>
</td>
<td width="175" valign=top>
<input type="checkbox" name="CNN"> <a href="http://www.CNN.com">CNN</a>
</td>
<td width="175" valign=top><input type="checkbox" name="microsoft"> <a href="http://www.microsoft.com">Microsoft</a>
</td></tr>
</table>
<br>
<!-- When I add the following table the trouble starts. Even when I just add <table><tr><td>test</td></ tr></table > it doesn't show up in NN3 -->
<table>
<table border=0>
<tr><td width="220" valign=top>
Text field for another item:</td>
<td width="310" valign=top>
<input type="text" name="item2" size="30">
</td></tr>
<tr><td colspan=2> </td></tr>
<tr><td colspan=2 align=center><input type="submit">
</td></tr>
</table>
</body>
</html>
table. Before I add it I can view the form in NN3 and IE4. After I add it, I can only see the form in IE4 (NN3 shows a blank screen).
Does anyone know how I can solve this problem?
I have also put the page on-line at:
http://members.xoom.com/wimkerk/form.html
Thanks
---------------------
<html>
<head><title></title>
</head>
<body>
<center>
<table border=0 width="600">
<tr><td width="70"> </td>
<td width="530">
<center>
<h2>Test</h2>
</center>
<p>
Bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla, bla.
<!-- Form -->
<form name="test" method="post">
<table border=0>
<tr><td width="220" valign=top>
Text field for one item:</td>
<td width="310" valign=top>
<input type="text" name="item1" size="30">
</td></tr>
<tr><td colspan=2> </td></tr>
</table>
<table border=1>
<tr><td colspan=3><center><font color=blue size=4>Some Sites</a></font>
</td></tr>
<tr><td width="175" valign=top><input type="checkbox" name="yahoo"> <a href="http://www.yahoo.com">Yahoo</a>
<br>
<input type="checkbox" name="Disney"> <a href="http://www.disney.com">Disney</a>
<br>
<input type="checkbox" name="infoseek"> <a href="http://www.infoseek.com">Infoseek</a>
</td>
<td width="175" valign=top>
<input type="checkbox" name="CNN"> <a href="http://www.CNN.com">CNN</a>
</td>
<td width="175" valign=top><input type="checkbox" name="microsoft"> <a href="http://www.microsoft.com">Microsoft</a>
</td></tr>
</table>
<br>
<!-- When I add the following table the trouble starts. Even when I just add <table><tr><td>test</td></
<table>
<table border=0>
<tr><td width="220" valign=top>
Text field for another item:</td>
<td width="310" valign=top>
<input type="text" name="item2" size="30">
</td></tr>
<tr><td colspan=2> </td></tr>
<tr><td colspan=2 align=center><input type="submit">
</td></tr>
</table>
</body>
</html>
remove the first <table> from above <table border=0>. Netscape is expecting a table there and is not displaying the rest of the stuff.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi Wimkerk,
here's what I've found:
line 5 - <center>, that tag name was opened but never closed,
and same goes to -
<table> from line 6;
<tr> -- line 7;
<td> -- line 8;
<p> -- line 13;
<form> -- line 18;
<center> -- line 30;
<table> -- line 48.
On the line 30 you have closing tag </a>, but this tag was never
opened.
On the lines 32, 34, 36, 39 and 41 you have <input type="checkbox"
name="..">. An INPUT element with TYPE=CHECKBOX requires the NAME AND VALUE attributes.
Here's different view on your page with tags. Can you find here
your errors?
<html>
| <head>
| | <title>
| | </title>
| </head>
| <body>
| | <center> <table> <tr>
| | <td>
| | |
| | </td>
| | <td>
| | <center>
| | | <h2>
| | | </h2>
| | </center>
| | <p> <form>
| | <table>
| | | <tr>
| | | | <td>
| | | | </td>
| | | | <td>
| | | | | <input>
| | | | </td>
| | | </tr>
| | | <tr>
| | | | <td>
| | | | |
| | | | </td>
| | | </tr>
| | </table>
| | <table>
| | | <tr>
| | | | <td>
| | | | | <center>
| | | | | <font>
| | | | | </a>
| | | | </font>
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | | <br> <input>
| | | | <a>
| | | | </a>
| | | | <br> <input>
| | | | <a>
| | | | </a>
| | | </td>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | </td>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | </td>
| | </tr>
| </table>
| <br> <table>
| <table>
| | <tr>
| | | <td>
| | | </td>
| | | <td>
| | | | <input>
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | |
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | | <input>
| | | </td>
| | </tr>
| </table>
</body>
</html>
Regards, Happy®One
here's what I've found:
line 5 - <center>, that tag name was opened but never closed,
and same goes to -
<table> from line 6;
<tr> -- line 7;
<td> -- line 8;
<p> -- line 13;
<form> -- line 18;
<center> -- line 30;
<table> -- line 48.
On the line 30 you have closing tag </a>, but this tag was never
opened.
On the lines 32, 34, 36, 39 and 41 you have <input type="checkbox"
name="..">. An INPUT element with TYPE=CHECKBOX requires the NAME AND VALUE attributes.
Here's different view on your page with tags. Can you find here
your errors?
<html>
| <head>
| | <title>
| | </title>
| </head>
| <body>
| | <center> <table> <tr>
| | <td>
| | |
| | </td>
| | <td>
| | <center>
| | | <h2>
| | | </h2>
| | </center>
| | <p> <form>
| | <table>
| | | <tr>
| | | | <td>
| | | | </td>
| | | | <td>
| | | | | <input>
| | | | </td>
| | | </tr>
| | | <tr>
| | | | <td>
| | | | |
| | | | </td>
| | | </tr>
| | </table>
| | <table>
| | | <tr>
| | | | <td>
| | | | | <center>
| | | | | <font>
| | | | | </a>
| | | | </font>
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | | <br> <input>
| | | | <a>
| | | | </a>
| | | | <br> <input>
| | | | <a>
| | | | </a>
| | | </td>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | </td>
| | | <td>
| | | | <input>
| | | | <a>
| | | | </a>
| | | </td>
| | </tr>
| </table>
| <br> <table>
| <table>
| | <tr>
| | | <td>
| | | </td>
| | | <td>
| | | | <input>
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | |
| | | </td>
| | </tr>
| | <tr>
| | | <td>
| | | | <input>
| | | </td>
| | </tr>
| </table>
</body>
</html>
Regards, Happy®One
ASKER
Sorry for the delay. I will give my points for the answer that let my form reappear: the answer of chewymon.
Thanks MasseyM and also happy1 for the detailed comment. The additional tags that I have forgotten didn't seem to matter to NN3, but it might matter to other browsers. So thanks a lot.
Thanks MasseyM and also happy1 for the detailed comment. The additional tags that I have forgotten didn't seem to matter to NN3, but it might matter to other browsers. So thanks a lot.