UCP isn't reading passwords from database... (+rep)
#3

I have everything in the Script and on the UCP in mysql

Код:
if(!isset($_SESSION['Character'])&&!isset($_SESSION['Key'])&&!isset($_POST['Character']) && !isset($_POST['Key']))//login page part
{
	echo '<table width="300" border="0" align="center" cellpadding="0" cellspacing="1">
		<tr>
		<form name="form1" method="post" action="index.php">
		<td>
		<table width="100%" border="0" cellpadding="3" cellspacing="1">
		<tr>
		<td colspan="3"><strong><span style="color:white">Character Login</span></strong></td>
		</tr>
		<tr>
		<td width="78"><span style="color:white">Username:</span></td>
		<td width="294"><input name="Character" type="text" id="Character"></td>
		</tr>
		<tr>
		<td><span style="color:white">Password:</span></td>
		<td><input name="Key" type="password" id="Key"><input type="submit" name="Submit" value="Login"></td>
		</tr>
		</table>
		</td>
		</form>
		</tr>
		</table>';
}
Код:
if(!session_start())
{
	echo "Can't start session!";
	exit;
}
if(isset($_POST['Character']))
{
	$_SESSION['Character'] = $_POST['Character'];
	unset($_POST['Character']);
}
if(isset($_POST['Key']))
{
	$_SESSION['Key'] = $_POST['Key'];
	unset($_POST['Key']);
}
So i dont need the Sessions for Character and Key?
Reply


Messages In This Thread
UCP isn't reading passwords from database... (+rep) - by Matical - 18.06.2016, 02:06
Re: UCP isn't reading passwords from database... (+rep) - by Vince - 18.06.2016, 07:33
Re: UCP isn't reading passwords from database... (+rep) - by Matical - 18.06.2016, 15:37

Forum Jump:


Users browsing this thread: 1 Guest(s)