<?
if(isset($_POST[b1]))
{
$m= new myclass();
$x=$m -> validlogin($_POST[t1],$_POST[t2])
# if ($x== true) #
{
$_SESSION[username]=$_POST[t1];
?>
<? include ("menu.php");?>
<script type="text/javascript">
window.location = "cpanel.php";
</script>
<?
}
else {
echo "invaild login";
}
}
?>
}
}
?>
Samerases -3 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.