首页上一页 1 下一页尾页 1 条记录 1/1页
虚拟主机真麻烦
发表在PHP图书答疑
2010-07-17
是否精华
是
否
版块置顶:
是
否
虚拟主机真麻烦,下面的是《PHP开发典型模块大全(修订版)》留言板的“发表文章”的一输入界面file_add.php,只做了一点点的修改。在本地测试完全正常,但是上传到虚拟主机后,从table表格以后的内容竟然不显示!为什么虚拟主机不显示这个表格呢?为什么本地显示呢?
--------------------------------------------------------------------------------------
<DOCTYPE html PUBIC"_//w3c//DTD XHTML1.0 strict//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml1_strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"lang="en">
<head>
<meta http-equiv="Content-Type"content="text/html;charset=gb2312">
<meta="keywords"content="">
<meta name="description"content="">
<title></title>
<link rel="stylesheet" type="text/css" href="../style.css" />
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php include("logo.php");?>
<?php include("daohang.php");?>
<?php
include("./global_manage.php");
?>
<link rel="stylesheet" href="css.css" />
<link rel="stylesheet" type="text/css" href="../style.css" />
<script language="JavaScript">
<!--
function check(myform){
if(myform.txt_title.value==""){
alert("文章标题不能为空");myform.txt_title.focus();return false;
}
if(myform.txt_title.value.length>17){
alert("文章标题不能太长");myform.txt_title.focus();return false;
}
if(myform.txt_zuozhe.value==""){
alert("文章作者不能为空");myform.txt_zuozhe.focus();return false;
}
if(myform.txt_zuozhe.value.length>17){
alert("文章作者不能太长");myform.txt_zuozhe.focus();return false;
}
if(myform.txt_laiyuan.value==""){
alert("文章来源不能为空");myform.txt_laiyuan.focus();return false;
}
if(myform.txt_laiyuan.value.length>14){
alert("文章来源不能太长");myform.txt_laiyuan.focus();return false;
}
if(myform.file.value==""){
alert("文章内容不能为空");myform.file.focus();return false;
}
}
//-->
</script>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="190" valign="top" bgcolor="#f0f0f0"><?php include("m_left.php");?></td>
<td width="3" background="../images/dot_bg.gif"> </td>
<td width="757" align="center" valign="top" bgcolor="#FFFFFF"><table width="700" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="613" height="223" align="center">
<table width="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><form action="check_file.php" method="post" name="myform" id="myform">
<table width="680" border="1" cellpadding="3" cellspacing="1" bordercolor="#D9EBB9">
<tr>
<td valign="middle" align="right" width="14%">文章主题:<br /></td>
<td width="86%"><input name="txt_title" type="text" id="txt_title" size="85" /></td>
</tr>
<tr>
<td valign="middle" align="right" width="14%">文章作者:<br /></td>
<td width="86%"><input name="txt_zuozhe" type="text" id="txt_zuozhe" value="匿名"size="85" /></td>
</tr>
<tr>
<td valign="middle" align="right" width="14%">文章来源:<br /></td>
<td width="86%"><input name="txt_laiyuan" type="text" id="txt_laiyuan" value="互联网"size="85" /></td>
</tr>
<tr>
<td width="14%" align="right" valign="middle">文章内容:</td>
<td width="86%"><div class="file">
<textarea name="file" rows="20" id="file" style="border:1px;width:580px; "></textarea>
</div></td>
</tr>
<tr align="center">
<td height="40" colspan="2"><input name="btn_tj" type="submit" class="btn1" id="btn_tj"
onclick="return check(myform);" value="发表文章" />
<input name="btn_cx" type="reset" class="btn1" id="btn_cx" value="重写文章" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
<?php include("footer.html");?>
--------------------------------------------------------------------------------------
<DOCTYPE html PUBIC"_//w3c//DTD XHTML1.0 strict//EN"
"http://www.w3.org/TR/xhtml/DTD/xhtml1_strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"lang="en">
<head>
<meta http-equiv="Content-Type"content="text/html;charset=gb2312">
<meta="keywords"content="">
<meta name="description"content="">
<title></title>
<link rel="stylesheet" type="text/css" href="../style.css" />
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<?php include("logo.php");?>
<?php include("daohang.php");?>
<?php
include("./global_manage.php");
?>
<link rel="stylesheet" href="css.css" />
<link rel="stylesheet" type="text/css" href="../style.css" />
<script language="JavaScript">
<!--
function check(myform){
if(myform.txt_title.value==""){
alert("文章标题不能为空");myform.txt_title.focus();return false;
}
if(myform.txt_title.value.length>17){
alert("文章标题不能太长");myform.txt_title.focus();return false;
}
if(myform.txt_zuozhe.value==""){
alert("文章作者不能为空");myform.txt_zuozhe.focus();return false;
}
if(myform.txt_zuozhe.value.length>17){
alert("文章作者不能太长");myform.txt_zuozhe.focus();return false;
}
if(myform.txt_laiyuan.value==""){
alert("文章来源不能为空");myform.txt_laiyuan.focus();return false;
}
if(myform.txt_laiyuan.value.length>14){
alert("文章来源不能太长");myform.txt_laiyuan.focus();return false;
}
if(myform.file.value==""){
alert("文章内容不能为空");myform.file.focus();return false;
}
}
//-->
</script>
<table width="950" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="190" valign="top" bgcolor="#f0f0f0"><?php include("m_left.php");?></td>
<td width="3" background="../images/dot_bg.gif"> </td>
<td width="757" align="center" valign="top" bgcolor="#FFFFFF"><table width="700" border="0" cellpadding="0"
cellspacing="0">
<tr>
<td width="613" height="223" align="center">
<table width="700" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center"><form action="check_file.php" method="post" name="myform" id="myform">
<table width="680" border="1" cellpadding="3" cellspacing="1" bordercolor="#D9EBB9">
<tr>
<td valign="middle" align="right" width="14%">文章主题:<br /></td>
<td width="86%"><input name="txt_title" type="text" id="txt_title" size="85" /></td>
</tr>
<tr>
<td valign="middle" align="right" width="14%">文章作者:<br /></td>
<td width="86%"><input name="txt_zuozhe" type="text" id="txt_zuozhe" value="匿名"size="85" /></td>
</tr>
<tr>
<td valign="middle" align="right" width="14%">文章来源:<br /></td>
<td width="86%"><input name="txt_laiyuan" type="text" id="txt_laiyuan" value="互联网"size="85" /></td>
</tr>
<tr>
<td width="14%" align="right" valign="middle">文章内容:</td>
<td width="86%"><div class="file">
<textarea name="file" rows="20" id="file" style="border:1px;width:580px; "></textarea>
</div></td>
</tr>
<tr align="center">
<td height="40" colspan="2"><input name="btn_tj" type="submit" class="btn1" id="btn_tj"
onclick="return check(myform);" value="发表文章" />
<input name="btn_cx" type="reset" class="btn1" id="btn_cx" value="重写文章" /></td>
</tr>
</table>
</form></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td colspan="3"></td>
</tr>
</table>
<?php include("footer.html");?>