|
hi, this coding work in localhost but not working in FTP the session variable not carring the page.
<?php
session_start();
if ((isset($_SESSION['username']) &&
$_SESSION['username'] != "") ||
(isset($_SESSION['password']) &&
$_SESSION['password'] != ""))
{
$name=$_SESSION['username'];
echo "<b>".$name."</b>";
echo "<a href='logout.php'>(Logout)</a>";
}
?><form action="logged.php" method="post">
<table align="left" style='margin-left:32.5%'>
<!-- START:Login form -->
<tr><td ><input type="text" name="username" size="20" value="User Name" onfocus="if (this.value == 'User Name') this.value = '';"><br>
<input type="password" name="password" size="20" value="Password" onfocus="if (this.value == 'Password') this.value = '';">
</td>
<td align="center"><input type="submit" name="submit" value="Log In" src="image/go.gif"></td>
</tr>
</table>
</form>
<!-- END:Login form -->
|