<FORM method="post" ACTION="authorization.php" >
<TR> <TD ALIGN=CENTER VALIGN=center> <b>Username</b> </TD> <TD ALIGN=CENTER VALIGN=center> <INPUT NAME="user" TYPE="text" SIZE="15"> </TD> </TR>
<TR> <TD ALIGN=CENTER VALIGN=center> <b>Password</b> </TD> <TD ALIGN=CENTER VALIGN=center> <input type="password" name="pass" size= "15"> </TD> </TR>
<TR> <TD ALIGN=CENTER VALIGN=center> <INPUT TYPE="submit" VALUE="Login" name="submit"></TD> <TD></TD> </TR>
</FORM>
the script above, as you can see, provide a form in order to autorizate the user and let him go in the system.
The form shows the php file which inthat case is authorization.php
$username=$_POST['user'];
$password=$_POST['pass'];
mysql_connect("localhost");
mysql_select_db("authentication");
if($_POST['submit']) {
if(($username)&&($password)) {
$result=mysql_query("SELECT * FROM users WHERE username='$username' AND password='$password'");
$num=mysql_num_rows($result);
if($num=="1") { echo "<div align=center>Good Morning Mr ".$username." </div>";}
else {echo "<div align=center>You are not registered</div>"; }}
else {echo "<div align=center>You should fill all the fields, Please Go Back</div>"; }}
mysql_close();
The script above is doing the authentication, so my problem is that, when i press the submit iam transfered to the php page, but i want to go to another page like the login page of the forums.
Could i use META tags in order to archieve that? a META tag which will let me to move into another page in a few seconds???