Session is not working.
When user do Sign IN or Sign UP, after that on every page (dashboard.php and configure.php) user email should be displayed.
It is not displaying any error but it is not working.
I have used md5 method for password. I have problem regarding set session.
Let me know IF you have any idea. Thanks a lot in advanced.
//login.php
<?php ?>
<form action="dashboard.php methos="POST">
<table>
<tr>
<td> Your email address: </td>
<td> <input type="text" id="txtEmail" name="txtEmail" value="txtEmail" required="required" /> </td>
</tr>
<tr>
<td> Choose your Password: </td>
<td> <input type="password" id="pwd" name="pswd" required="required" /> </td>
</tr>
</table>
<input type="submit" class="btnLogin" value="GO" style="display:inline-block; font-weight:bold; font-size:12px; margin-left:350px;" />
<form>
<?php ?>
// createaccount.php
<form method="post" name="SignUp" action="dashboard.php" onSubmit="return validatenewuser();">
<div class="divLogin">
<table>
<tr>
<td> Your email address: </td>
<td> <input type="text" id="txtEmail" name="txtEmail" value="txtEmail" required="required" /> </td>
</tr>
<tr>
<td> Choose your Password: </td>
<td> <input type="password" id="pwd" name="pswd" required="required" /> </td>
</tr>
<tr>
<td> Confirm Password: </td>
<td> <input type="password" id="cnfmpwd" name="cnfmpswd" required="required" /> </td>
</tr>
</table>
</div>
<br /><div id="message">Nothing else required.</div><br />
<input type="submit" class="btnLogin" value="OK" style="display:inline-block; font-weight:bold; font-size:12px; margin-left:350px;" />
</form>
// dashboard.php
<?php
session_start();
?>
<? echo "$txtEmail"; ?>
<div id="dashbox">
<input type="button" value="configure">
</div>
// configure.php
<?php
session_start();
?>
<? echo "$txtEmail"; ?>
<div id="dashbox">
<input type="button" value="dashboard">
<input type="button" value="configure">
</div>