Thursday, April 4, 2013

Working with PHP Session with complete login form V1

This is the index.php page.

<?php
session_start();
session_destroy();
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome »To My | Website</title>

//If you have some CSS and want to include them
<link href="css/layout.css" rel="stylesheet" type="text/css" />
<link href="css/forms.css" rel="stylesheet" type="text/css" />
</head>
<body>


//If you wan to to have any menu then

<ul>
    <li class="current"><a href="index.php">MENU1</a></li>
    <li><a href="index1.php">MENU1</a></li>
    <li><a href="index2.php">MENU1</a></li>
   <li><a href="index3.php">MENU1</a></li>
   <li><a href="index4.php">MENU1</a></li>
    <li></li>
  </ul>

// End of menu link

//Your login form


<div id="login">
  <p><strong>Already registered ?</strong> Login here to access your account</p>
<div id="loginform">
<form method="post" action="verify.php">
<div class="formblock">
<label>Username</label>
<input name="myusername" type="text" class="textfields" />
</div>
<div class="formblock">
<label>Password</label><input name="mypassword" type="password" class="textfields"/>
</div>
<div class="formblock">
  <input type="image" src="images/loginbutton.jpg" name="button" id="button" value="Submit" />
</div>
</form>
</div>
</div>
// end of login from

//Your page footer


<div id="footer">
<center><font color=white><b><div id="upperfooter"> <a href="#">Home</a> | <a href="#">Register</a> | <a href="#">About Us</a> | <a href="#">Contact Us</a> |<a href="#"> Privacy Policy</a> <a href="#">Terms Of Use</a></b></font></center></div>
</body>
</html>




No comments:

Post a Comment