<?
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
Recommended Answers
Jump to PostParse error: syntax error, unexpected T_IF in E:\AppServ\www\society\myadmi
Which line? You have to explain what error you are having.
All 4 Replies
Reply to this topic
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.