<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<?php
$con=mysql_connect("localhost","root","") or die (mysql_error("error"));
mysql_select_db("dataplus",$con)or die (mysql_error("error"));
if(!empty($_POST["user"])&&!empty($_POST["pass"]))
{
$us=$_POST["user"];
$slc="SELECT `password` FROM `user` where `useame`='$us' ";
$res=mysql_query($slc);
if($_POST["pass"]==11)
{
echo "welecom";
}
else
{
echo "try agin";
}
}
?>
<form name="fo1" action="<?php $_SERVER['PHP_SELF'] ?>" method="post">
<input type="text" name="user" />
<input type="password" name="pass" />
<input type="submit" />
</form>
</body>
</html>[/align][/align][/align][/align]
ما را در سایت php مرکز کد های سایت دنبال میکنید
برچسب: نویسنده: استخدام کار بازدید: 149