PHP编码问题,找不到错误,请帮助!!! [英] PHP Coding Problem, Can't Find The Error, PLEASE HELP!!!

查看:64
本文介绍了PHP编码问题,找不到错误,请帮助!!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个程序可以从页面获取变量,
并比较它们.如果变量$ password没有
匹配$ repassword,它将回显错误.回声
错误无论如何,请帮忙

html页面代码为:

eeWebHostingArea
42cheese团队制作的网站
请通过hdesk@42cheese.6te.net与我们联系



I have a program set to get variables from a page,
and compare them. If the variable $password does not
match $repassword then it will echo an error. It echo''s
the error no matter what, please help

The html page code is:

eeWebHostingArea
Site made by 42cheese Team
Contact us at: hdesk@42cheese.6te.net



<html>
<head>
<title>Happycraft Survival and Creative</title>


#foreground
{
padding: 5px;
border-radius: 25px; 
-moz-border-radius: 25px; 
-webkit-border-radius: 25px; 
border: 1px solid blue;
background-color: red;
color: green:
}

#navbar
{
background-color: brown;
padding: 5px;
border-radius: 25px; 
-moz-border-radius: 25px; 
-webkit-border-radius: 25px; 
}

.nav
{
background-color: red;
border-radius: 50px; 
-moz-border-radius: 50px; 
-webkit-border-radius: 50px; 
border: 1px solid blue;
text-decoration: none;
color: blue;
padding: 2px;
}

#body
{
background-color: red;
color: blue;
}

#thnx
{
text-align: right;
color: black;
}

#thnx a
{
text-decoration: none;
color: black;
}


</head>
<body>


<marquee style="background-color: red; color: blue; margin-left: 5px; margin-right: 5px;" direction="left" loop="-1" width="99%">
Be Happy!
</marquee>


Home
Apply


Register:
<form method=POST action="registerphp.php">
Username:
<input type="text" name="name">

Password:
<input type="password" name="pass">

Repeat Password:
<input type="password" name="repass">

<input type="submit" value="Submit">
</form>


  
  <script language="JavaScript">
  var data = '&r=' + escape(document.referrer)
	+ '&n=' + escape(navigator.userAgent)
	+ '&p=' + escape(navigator.userAgent)
	+ '&g=' + escape(document.location.href);

  if (navigator.userAgent.substring(0,1)>'3')
    data = data + '&sd=' + screen.colorDepth 
	+ '&sw=' + escape(screen.width+'x'+screen.height);

  document.write('');
  document.write('');
  document.write('');
  </script>

Free site hosting and subdomain byFreeWebHostingArea
Site made by 42cheese Team
Contact us at: hdesk@42cheese.6te.net



</body>
</html>



PHP代码:



PHP Code:

Back");

}

if(!$password == $repassword)
{

die("Password Does Not MatchBack");

}

$query = mysql_query("INSERT INTO happylogin(name,password) VALUES('{$ename}','{$epassword}'");

if($query)
{
echo"Account Created SuccessfullyHome";
$query = mysql_query("SELECT * FROM happylogin WHERE name='$ename'");
$array = mysql_fetch_array($query);
$_SESSION['ID'] = $array['ID'];

$_SESSION['name'] = $name;
}

else
{
die("Error Creating AccountCheck Internet Connection or Contact the 42cheese Team at hdesk@42cheese.6te.net");
}


?>


-AKsicppy


-AKsicppy

推荐答案

密码不
match
password does not
match


repassword,它将回显错误.回声
错误无论如何,请帮忙

html页面代码为:

eeWebHostingArea
42cheese团队制作的网站
请通过hdesk@42cheese.6te.net与我们联系



repassword then it will echo an error. It echo''s
the error no matter what, please help

The html page code is:

eeWebHostingArea
Site made by 42cheese Team
Contact us at: hdesk@42cheese.6te.net



<html>
<head>
<title>Happycraft Survival and Creative</title>


#foreground
{
padding: 5px;
border-radius: 25px; 
-moz-border-radius: 25px; 
-webkit-border-radius: 25px; 
border: 1px solid blue;
background-color: red;
color: green:
}

#navbar
{
background-color: brown;
padding: 5px;
border-radius: 25px; 
-moz-border-radius: 25px; 
-webkit-border-radius: 25px; 
}

.nav
{
background-color: red;
border-radius: 50px; 
-moz-border-radius: 50px; 
-webkit-border-radius: 50px; 
border: 1px solid blue;
text-decoration: none;
color: blue;
padding: 2px;
}

#body
{
background-color: red;
color: blue;
}

#thnx
{
text-align: right;
color: black;
}

#thnx a
{
text-decoration: none;
color: black;
}


</head>
<body>


<marquee style="background-color: red; color: blue; margin-left: 5px; margin-right: 5px;" direction="left" loop="-1" width="99%">
Be Happy!
</marquee>


Home
Apply


Register:
<form method=POST action="registerphp.php">
Username:
<input type="text" name="name">

Password:
<input type="password" name="pass">

Repeat Password:
<input type="password" name="repass">

<input type="submit" value="Submit">
</form>


  
  <script language="JavaScript">
  var data = '&r=' + escape(document.referrer)
	+ '&n=' + escape(navigator.userAgent)
	+ '&p=' + escape(navigator.userAgent)
	+ '&g=' + escape(document.location.href);

  if (navigator.userAgent.substring(0,1)>'3')
    data = data + '&sd=' + screen.colorDepth 
	+ '&sw=' + escape(screen.width+'x'+screen.height);

  document.write('');
  document.write('');
  document.write('');
  </script>

Free site hosting and subdomain byFreeWebHostingArea
Site made by 42cheese Team
Contact us at: hdesk@42cheese.6te.net



</body>
</html>



PHP代码:



PHP Code:

Back");

}

if(!


密码==


这篇关于PHP编码问题,找不到错误,请帮助!!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆