can u suggest me?
Hi every body,
my coneection page is conn.php.but this page is not move into see.php after taking user and pass field and then clicking submit button.It is still stand in that page refreshing those field.what is my problem?can u suggest me?
<HTML>
<HEAD>
<TITLE> New Document </TITLE>
</HEAD>
<BODY>
<html>
<title></title>
<body>
<h2><center>Welcome to this site!!!</center></h2>
<form method="post" action ="" ><center>
<b>User :</b>
<input type="text" size="40" name="user">
<br>
<b>Password :</b>
<input type="password" size="30" name="pass"></center>
<br>
<center>
<input type="submit" name="submit" value="sign!"></center>
</form>
</BODY>
</HTML>
<?php
include('conn.php');
$user= $_POST['user'];
$submit= $_POST['submit'];
$pass=$_POST['pass'];
if ($submit=="sign!")
{
$query = "select * from user_tablename where user='$user' and pass='$pass'";
$result=mysql_query($query);
if( !$result) {
if( !headers_sent()){
header('Location :http://localhost/try/see.php');
exit;
}
}
}
?>
|