and it starting to piss me off, and I dont know why its not redirecting to the page I want to redirect
and this is my script for the login page
include "database-connection.php";
session_start();
if($_SERVER["REQUEST_METHOD"] == "POST")
{
// username and password sent from Form
$myusername=addslashes($_POST["username"]);
$mypassword=addslashes($_POST["password"]);
$sql="SELECT id FROM Account_Info WHERE UserName='$myusername' and Password='$mypassword'";
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
$count=mysql_num_rows($result);
// If result matched $myusername and $mypassword, table row must be 1 row
if($count==1)
{
session_register("myusername");
Bookmarks