PHP网页无法连接显示 我在本地linux上写了一个PHP网页,可以正常浏览,但是当我反把网页上传到服务器上后只能显示登录页,其他页却无法连接,请问是什么原因,谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 主文件为myphp.php,代码如下:<?php$username1=$HTTP_POST_VARS["username"];$password1=$HTTP_POST_VARS["password"];include("config.php");$query="select * from radius.radcheck where Usernanme='$username1'";$result=mysql_query($query);if($row=mysql_fetch_array($result)){ if($row["password"]==$password1) header("Location:index.php"); }else{ makeform();}function makeform(){?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="content-type" content="text/html;charset=GB2321"><title>用户登录</title></head><body alink="#FF0000" link="#000099" vlink="#CC6600" topmargin="8" leftmargin="0" bgColor="#FFFFFF"><form action="myphp.php" method="post"><table cellspacing=0 bordercolordark=#FFFFFF width=60% bordercolorlight=#000000 border=1 align=center cellpadding=2> <tr bgcolor=#6b8ba8 style=color:FFFFFF> <td width=100% align=center valign=bottom height=19 colspan=3>用户登录</td> </tr> <tr> <td width=30% align=center>用户名:</td> <td width=70% align=center><input type=text name=username size=20 maxsize=20></td> </tr> <tr> <td width=30% align=center>密 码:</td> <td width=70% align=center><input type=password name=pass size=20 maxsize=20></td> </tr> <tr> <td width=100% align=center colspan=2><input type=submit value=登录></td> </tr></table></form></body></html><?php}?> PHP里print_r()和substr() AJAX在本地测试IE,Firefox均正常,上传到服务器后Firefox正常,IE下不显示 php读取xml 关于算sql 语句的问题 已知3个变量的数值,求证3者之间关系的代码 mysql_connect 连接数据库出错后下面的代码就不执行,是这样的吗? 我好像写了一个死循环 MYSQL 排序的问题 webqq,欢迎大家使用 过来人请进! SmartTemplate一个非常大的bug:可以在模版中使用<?代码 专家预言:PHP将比Java更受欢迎
$username1=$HTTP_POST_VARS["username"];
$password1=$HTTP_POST_VARS["password"];
include("config.php");
$query="select * from radius.radcheck where Usernanme='$username1'";
$result=mysql_query($query);
if($row=mysql_fetch_array($result))
{
if($row["password"]==$password1)
header("Location:index.php");
}else{
makeform();
}
function makeform()
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=GB2321">
<title>用户登录</title>
</head>
<body alink="#FF0000" link="#000099" vlink="#CC6600" topmargin="8" leftmargin="0" bgColor="#FFFFFF">
<form action="myphp.php" method="post">
<table cellspacing=0 bordercolordark=#FFFFFF width=60% bordercolorlight=#000000 border=1 align=center cellpadding=2>
<tr bgcolor=#6b8ba8 style=color:FFFFFF>
<td width=100% align=center valign=bottom height=19 colspan=3>用户登录</td>
</tr>
<tr>
<td width=30% align=center>用户名:</td>
<td width=70% align=center><input type=text name=username size=20 maxsize=20></td>
</tr>
<tr>
<td width=30% align=center>密 码:</td>
<td width=70% align=center><input type=password name=pass size=20 maxsize=20></td>
</tr>
<tr>
<td width=100% align=center colspan=2><input type=submit value=登录></td>
</tr>
</table>
</form>
</body>
</html>
<?php
}
?>