|
环境 RH8.0
服务器: apache
为何我的index.php不认识 JAVASCIRPT??不出警告提示???
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>留言板</title>
<style type="text/css">
A:link,A:active,A:visited{TEXT-DECORATION:none ;Color:#000000}
A:hover{TEXT-DECORATION: underline;Color:#4455aa}
BODY{
FONT-SIZE: 12px;
COLOR: #000000;
FONT-FAMILY: 宋体;
background-color: #FFFFFF;
scrollbar-face-color: #DEE3E7;
scrollbar-highlight-color: #FFFFFF;
scrollbar-shadow-color: #DEE3E7;
scrollbar-3dlight-color: #D1D7DC;
scrollbar-arrow-color: #006699;
scrollbar-track-color: #EFEFEF;
scrollbar-darkshadow-color: #98AAB1;
}
TD{
font-family: 宋体;
font-size: 12px;
line-height: 15px;
}
INPUT{BORDER-TOP-WIDTH: 1px; PADDING-RIGHT: 1px; PADDING-LEFT: 1px; BORDER-LEFT-WIDTH: 1px; FONT-SIZE: 9pt; BORDER-LEFT-COLOR: #cccccc; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: #cccccc; PADDING-BOTTOM: 1px; BORDER-TOP-COLOR: #cccccc; PADDING-TOP: 1px; HEIGHT: 18px; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: #cccccc; font-family: "宋体"; font-size: 12px}
select,Textarea{
font-family:Tahoma,Verdana,宋体; font-size: 12px; line-height: 15px;}
}
</style>
<script language="JavaScript">
<!--
function checkForm() {
if (post.xm.value.length<2) {
alert('您发表的帖子必须有昵称.');
post.xm.focus();
return false;
}
if (post.content.value.length<2) {
alert('您发表的帖子必须有内容.');
post.content.focus();
return false;
}
else {
return true;
}
//-->
</script>
</head>
<body>
<form method="post" name='post' action="input.php" enctype="multipart/form-data" onsubmit='return checkForm(this)'>
<div align="center">
留言板
<br>
<center>
<table border="1" width="414" cellspacing="0" bordercolorlight="#999999" bordercolordark="#FFFFFF">
<tr>
<td width="79">
<p align="center">访客名:</td>
<td width="325"><input type="text" name="xm" size="20" style="width: 189; height: 18"></td>
</tr>
<tr>
<td width="79">
<p align="center">性&nbsp; 别:</td>
<td width="325"><input type="radio" value="男" name="xb" checked>男 <input type="radio" value="女" name="xb">女</td>
</tr>
<tr>
<td width="79">
<p align="center">图&nbsp; 像:</td>
<td width="325"><input type="file" name="myfile"></td>
</tr>
<tr>
<td width="404" colspan="2">
<p align="center">内 容</td>
</tr>
<tr>
<td width="404" colspan="2"><textarea rows="12" name="content" cols="78"></textarea></td>
</tr>
</table>
</center>
</div>
<p align="center"><input type="submit" value="提交" name="B1"> <input type="reset" value="撤销" name="B2"></p>
</form>
</body>
</html> |
|