rengaw03@hotmail.com wrote :[color=blue]
> The current HTML for the form:
>[/color]
Best is to post an url, not entire code. That way, we can better see,
test your webpage for possible problems (validation, mime header
responses, etc.).
[color=blue]
> <?xml version="1.0" encoding="iso-8859-1"?>
> <!DOCTYPE html
> PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/color]
Transitional is for old documents which are updated in the interim; new
documents should be using strict DTD.
[color=blue]
> <html xmlns="http://www.w3.org/1999/xhtml" lang="en-US"
> xml:lang="en-US">[/color]
I recommend using HTML 4.01 strict DTD instead.
<head><title>Login</title>[color=blue]
> <link rel="stylesheet" type="text/css" href="/opsmanual/main.css" />
> </head><body><div id="global_header">
> <p><a href="index.pl">Index</a> <a href="logout.pl">Log out</a></p>[/color]
Do you need a nested <p>...</p> inside your <div id="global_header">?
Just asking. Personally, I would remove that nested <p>...</p> inside
your <div id="global_header"> to make the DOM tree simplier, therefore
easier+faster to parse.
[color=blue]
> </div>
> <div id="global_body">[/color]
In your code, this <div id="global_body"> never gets to be closed; so
this is a markup error.
[color=blue]
> <center><form method="post" action="http://localhost/cgi-bin/login.pl"
> enctype="application/x-www-form-urlencoded" id="login_form">
> <table>[/color]
<div id="global_body">
<form method="post" action="http://localhost/cgi-bin/login.pl"
enctype="application/x-www-form-urlencoded" id="login_form">
<table style="margin-left: auto; margin-right: auto;">
Here too, I would remove that <div id="global_body"> from the DOM tree;
there is no serious reason to have it since the form acts like a
wrapping block-level element.
The CSS rules declared on that <div id="global_body">, if any, could be
transferred to the form element instead.
[color=blue]
> <tr>
> <td>Username:</td>
>
> <td><input type="text" name="username" value="Aardvark" size="20"
> maxlength="255" /></td>
> </tr>
> <tr>
> <td>Password:</td>
> <td><input type="password" name="password" size="20" maxlength="255"
> /></td>
> </tr>
> <tr>
> <td colspan="2"><center>
>[/color]
Here, replace the <td colspan="2"><center> with
<td colspan="2" style="text-align: center;">
[color=blue]
> <input type="submit" name="submit" value="Submit" /> <input
> type="reset" name=".reset" />
> </center></td>
> </tr>
> </table>
> </form></center>
> <div id="global_footer">Procedures manual</div>[/color]
As you can see, the closing </div> for your start tag
<div id="global_body"> is not there.
[color=blue]
> </body></html>
>
> This is an internal tool for a mostly-Macintosh shop, so support for
> Internet Explorer is not a significant concern. Getting it to look
> good in Safari, Opera, and Firefox is important.[/color]
Say NO to XHTML (excellent - the best - article, worth reading)
http://www.spartanicus.utvinternet.ie/no-xhtml.htm
Sending XHTML as text/html Considered Harmful
http://www.hixie.ch/advocacy/xhtml
"If you use XHTML, you should deliver it with the application/xhtml+xml
MIME type. If you do not do so, you should use HTML4 instead of XHTML.
The alternative, using XHTML but delivering it as text/html, causes
numerous problems that are outlined below. Unfortunately, IE6 does not
support application/xhtml+xml (in fact, it does not support XHTML at all)."
Even MSIE 7 will still not support application/xhtml+xml:
"IE7 will not add support for this MIME type
[application/xml+xhtml](...) Why aren't we supporting XHTML when it's
served as the media type in IE7? I made the decision to not try to
support the MIME type [application/xml+xhtml] in IE7 simply because I
personally want XHTML to be successful in the long run."
http://blogs.msdn.com/ie/archive/2005/09/15/467901.aspx
XHTML - What's the Point?
http://hsivonen.iki.fi/xhtml-the-point/
XHTML is dead
http://www.autisticcuckoo.net/archiv.../xhtml-is-dead
Gérard
--
remove blah to email me