Whenever I click a submit button on my site, it doesn't seem to realize that I've submitted anything. It just goes to the exact same screen it was before. It was working fine before, but now it is not. Could someone check my code to see if something is wrong with it?
<? include("../global/funcs.gbl");
if(isset($login)){
if(!$isset($uname)){
include("../global/head.gbl"); ?>
<code>Please enter a username.</code>
<? }
else{
$info=func_query("select un, pw from users where un=\'".$uname."\'");
if($pword==func_decrypt($info["pw"])){
setcookie("un",$info["un"],time()+600);
include("../global/head.gbl"); ?>
Login Successful.
<br />
If this window does not redirect in 5 seconds, click <a href="members.php">here</a> to continue.
<script language="javascript">
<!--
setTimeout("location.href='members.php'",5000);
//-->
</script>
<?
}
else{ ?>
<code>Incorrect login information. Please try again.</code>
<?
}
}
}
else{
include("../global/head.gbl"); ?>
<font class="title">Login</font>
<br />
<br />
<center>
<form method="post">
Username: <input type="text" name="uname" />
<br />
Password: <input type="password" name="pword" />
<br />
<br />
<input type="submit" name="login" value="Login" />
</form>
</center>
<? }
include("../global/foot.gbl"); ?>
func_query() and func_decrypt() DO exist in the funcs.gbl file, which is included in the inc.gbl file (inc.gbl includes my head.gbl and funcs.gbl file, it's there just to reduce code and confusion). It doesn't seem to have anything wrong with it, but there is something... could someone please help?