Eric98
asked on
What's wrong with my HTML ?
Why does this code work in Internet Explorer but not in Netscape ?
<html>
<title>Title of page</title>
<body>
<H3 ALIGN=CENTER>Choose the table </H3>
<FORM METHOD=POST ACTION=http://........../servlet/Const2 TARGET=frame2>
<table COLS=3 width=100%>
<TR><td width=30%> Choose the table : </td>
<td width=50%><input type=radio name=choix value=liste checked>List DETAILS of articles <br></td>
<TD width=20%><INPUT NAME=submit TYPE=SUBMIT VALUE=Suivant></TD></tr>
<tr><td><SELECT NAME=TABLE>
<OPTION>GM00 .TGMADR
<OPTION>GM00 .TGMPT
<OPTION>GM00 .TGMPU
</SELECT></td>
<td><input type=radio name=choix value=group >Calculate </td>
</PRE></P></FORM></TD>
<FORM TYPE=POST ACTION=http://........../servlet/VerifServlet TARGET=_top>
<TD><INPUT NAME=retour TYPE=SUBMIT VALUE=Quit> </TD></tr>
</FORM>
</BODY>
</html>
<html>
<title>Title of page</title>
<body>
<H3 ALIGN=CENTER>Choose the table </H3>
<FORM METHOD=POST ACTION=http://........../servlet/Const2 TARGET=frame2>
<table COLS=3 width=100%>
<TR><td width=30%> Choose the table : </td>
<td width=50%><input type=radio name=choix value=liste checked>List DETAILS of articles <br></td>
<TD width=20%><INPUT NAME=submit TYPE=SUBMIT VALUE=Suivant></TD></tr>
<tr><td><SELECT NAME=TABLE>
<OPTION>GM00 .TGMADR
<OPTION>GM00 .TGMPT
<OPTION>GM00 .TGMPU
</SELECT></td>
<td><input type=radio name=choix value=group >Calculate </td>
</PRE></P></FORM></TD>
<FORM TYPE=POST ACTION=http://........../servlet/VerifServlet TARGET=_top>
<TD><INPUT NAME=retour TYPE=SUBMIT VALUE=Quit> </TD></tr>
</FORM>
</BODY>
</html>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You have a lot of problems with you HTML code. Maybe you should try to use a visual html composer (Frontpage, Dreamweaver, etc)
Here goes a few considerations:
1.- Put all the tag values between double quotes:
bad: <td width=30%>
right: <td width="30%>
2.- Don't overlap tags.
bad: <table><form></table></for m>
right: <form><table></table></for m>
3.- close all you opened tags:
bad: <option>GM00 .TGMADR
right: <option>GM00 .TGMADR</option>
4.- test you urls:
Xabi
Here goes a few considerations:
1.- Put all the tag values between double quotes:
bad: <td width=30%>
right: <td width="30%>
2.- Don't overlap tags.
bad: <table><form></table></for
right: <form><table></table></for
3.- close all you opened tags:
bad: <option>GM00 .TGMADR
right: <option>GM00 .TGMADR</option>
4.- test you urls:
Xabi
Very nice Xabi. Well Eric98, like Xabi said, mind your tags, you're a bit sloppy with that. Like Xabi purposed using Frontpage or Netscape Composer is a very good alternative.
Oh, and Xabi
bad: <td width=30%> -> it's not bad, but this...
right: <td width="30%"> ...is better.
Be consequent like I already said. Of course just helping you, not offending you. ;)
Joseph
Oh, and Xabi
bad: <td width=30%> -> it's not bad, but this...
right: <td width="30%"> ...is better.
Be consequent like I already said. Of course just helping you, not offending you. ;)
Joseph
Oh, Xabi, mind that you too must end with </form> tag. ;)
Oubelkas: Yes I know about <td> tags with and without double quotes. It works in both ways, but ppl must uset double quotes for better codding. If you use this tag
<input type=hidden name=foo value=hi there>
you can see better why it necesary the double quotes.
Regarding the </form> tag I was changing his code, not redoing it, so it forgot it :)
Thanks for the coments
<textarea name="name">xabi</textarea >
<input type=hidden name=foo value=hi there>
you can see better why it necesary the double quotes.
Regarding the </form> tag I was changing his code, not redoing it, so it forgot it :)
Thanks for the coments
<textarea name="name">xabi</textarea
Yep, but back to the question, to solve this just do this
<TD><INPUT NAME=retour TYPE=SUBMIT VALUE=Quit> </TD></tr>
</TABLE>
</FORM>
end the table with </table>
Joseph
<TD><INPUT NAME=retour TYPE=SUBMIT VALUE=Quit> </TD></tr>
</TABLE>
</FORM>
end the table with </table>
Joseph
<html>
<title>Title of page</title>
<body>
<H3 ALIGN=CENTER>Choose the table </H3>
<FORM METHOD="POST" ACTION="http://........../servlet/Const2" TARGET="frame2">
<table COLS="3" width="100%">
<TR>
<td width="30%"> Choose the table : </td>
<td width="50%"><input type="radio" name="choix" value="liste" checked>List DETAILS of articles <br></td>
<TD width="20%"><INPUT NAME="submit" TYPE="SUBMIT" VALUE="Suivant"></TD>
</tr>
<tr>
<td><SELECT NAME=TABLE>
<OPTION>GM00 .TGMADR</option>
<OPTION>GM00 .TGMPT </option>
<OPTION>GM00 .TGMPU </option>
</SELECT>
</td>
<td><input type="radio" name="choix" value="group">Calculate </td>
</TD>
<TD>
<input type="button" value="Quit" onclick="document.location
</TD>
</tr>
</table>
</BODY>
</html>
Xabi