[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 150
  • Last Modified:

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>
0
Eric98
Asked:
Eric98
  • 4
  • 3
1 Solution
 
oubelkasCommented:
Be more consequent with your end tags ;)

Between

<TD><INPUT NAME=retour TYPE=SUBMIT VALUE=Quit> </TD></tr>
</FORM>

end the table with </table>

Joseph
0
 
xabiCommented:
Hi goes the code working.


<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='http://........../servlet/VerifServlet'">
  </TD>
  </tr>
</table>
</BODY>
</html>


Xabi
0
 
xabiCommented:
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></form>
  right: <form><table></table></form>
3.- close all you opened tags:
  bad: <option>GM00    .TGMADR
  right: <option>GM00    .TGMADR</option>
4.- test you urls:

Xabi
0
The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

 
oubelkasCommented:
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
0
 
oubelkasCommented:
Oh, Xabi, mind that you too must end with </form> tag. ;)
0
 
xabiCommented:
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>
0
 
oubelkasCommented:
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

0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now