Advertisement
fazeela

login.php

Mar 15th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 KB | None | 0 0
  1. <?php
  2. session_start();
  3. ?>
  4. <html>
  5. <head>
  6. <title>LOGIN FOR PRODUCT MANAGEMENT</title>
  7. <link href="style.css" rel="stylesheet" type="text/css"/>
  8. </head>
  9. <body>
  10. <div id="contact">
  11. <form id="myForm1" action="profile.php" method="post">
  12. <div style="margin-left:180px;color:#445668">
  13. <h3>LOGIN</h3></div>
  14. <p>
  15. <div style="margin-left:10px;margin-top:10px;">
  16. <label for="username">Email</label>
  17. </div>
  18. <div style="margin-top:10px;">
  19. <input type="email" id="username" name="username" placeholder="Enter your username"/>
  20. </div>
  21. <div style="margin-left:10px;margin-top:10px;">
  22. <label for="password">Password</label></div>
  23. <div style="margin-top:10px;">
  24. <input type="password" id="password" name="password" placeholder="Enter your password"/>
  25. </div>
  26. <div style="margin-top:20px;margin-left:-30px;width: 185px;text-align: right; font-size: 12px; color: #445668;
  27. text-transform: uppercase; text-shadow: 0px 1px 0px #f2f2f2;"><a href="forgotpass.php" style="text-decoration:none;">Forgot Password?</label></a>
  28. <div style="margin-left:440px;margin-top:-20px;"><input type="submit" name="Submit" value="Send "/></div>
  29. </p>
  30. </form>
  31. </div>
  32.  
  33.  
  34. <?php
  35. $temp=$_SESSION['username'];
  36. echo "$temp";
  37. if (isset($_POST['Submit'])) {
  38. $_SESSION['username'] = $_POST['username'];
  39. }
  40. ?>
  41. </body>
  42. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement