...

XHTML textfields in IE

bassleader
01-05-2003, 09:21 AM
Hi,

I am writing a form for my website in XHTML, here is the code I am using:

<form action="member.php" id="login" name="login" method="post">
<table>
<tr>
<td colspan="2">
<input type="text" name="username" id="username" size="16" maxlength="16" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="password" name="password" id="password" size="16" maxlength="16" />
</td>
</tr>
<tr>
<td><input type="submit" /></td>
<td><input type="reset" /></td>
</tr>
</table>
</form>

The doctype is XHTML 1.0 Strict. The problem I have is that in IE the textfields are readonly, how can I change this?

BL

Alex Vincent
01-05-2003, 08:19 PM
They shouldn't be readonly... :(

I don't see the typical red flags for IE's treatment of XHTML. Could you post the entire source code, and tell us what mime-type you serve the document as?

bassleader
01-06-2003, 08:33 AM
Here it is:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html>
<head>
<title>PHP Bookmark</title>
<link href="includes/book_style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="robots" content="noindex, nofollow">
</head>

<body>
<table align="center">
<tr>
<td>
<img alt="PHP Bookmarks" src="images/banner.gif" width="776" height="60" alt="Banner Image" />
</td>
</tr>
<tr>
<td>
<h1>Page Heading</h1>
<form action="member.php" id="login" name="login" method="post">
<table>
<tr>
<td colspan="2">
<input type="text" name="username" id="username" size="16" maxlength="16" />
</td>
</tr>
<tr>
<td colspan="2">
<input type="password" name="password" id="password" size="16" maxlength="16" />
</td>
</tr>
<tr>
<td><input type="submit" /></td>
<td><input type="reset" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>


It's part of a project I'm doing to learn XHTML, PHP and MySQL. I wouldn't be surprised if nobody else has this problem, it seems to be the way with these things.

BL

bassleader
01-06-2003, 08:49 AM
I'm not the only one with this problem it seems:

graduatewales.com (http://www.graduatewales.com) (try the login fields bottom left)

www.puzzler.co.uk (http://www.puzzler.co.uk) (click on competitions and try to log in)

I think this only started happening after I installed the latest IE6 update (yeah, yeah, blame Microsoft...).

I'm not sure what you mean when referring to mime types. Is this something I'm supposed to set somewhere?

BL

Adam20002
01-08-2003, 12:49 PM
I think this only started happening after I installed the latest IE6 update (yeah, yeah, blame Microsoft...).

I think that might be the problem more likely than it being an XHTML issue.

Adam

bassleader
01-09-2003, 06:42 PM
Thanks Adam, I did wonder.

Can somebody confirm this?

BL



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum