Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 42. <!DOCTYPE html>
- 43.
- 44. <html>
- 45. <head>
- 46. <title>Log In</title>
- 47. </head>
- 48. <body>
- 49. <form action="<?= $_SERVER["PHP_SELF"] ?>" method="post">
- 50. <table>
- 51. <tr>
- 52. <td>Username:</td>
- 53. <td>
- 54. <? if (isset($_POST["user"])): ?>
- 55. <input name="user" type="text" value="<?= htmlspecialchars($_POST["user"]) ?>">
- 56. <? elseif (isset($_COOKIE["user"])): ?>
- 57. <input name="user" type="text" value="<?= htmlspecialchars($_COOKIE["user"]) ?>">
- 58. <? else: ?>
- 59. <input name="user" type="text" value="">
- 60. <? endif ?>
- 61. </tr>
- 62. <tr>
- 63. <td>Password:</td>
- 64. <td><input name="pass" type="password"></td>
- 65. </tr>
- 66. <tr>
- 67. <td></td>
- 68. <td><input type="submit" value="Log In"></td>
- 69. </tr>
- 70. </table>
- 71. </form>
- 72. </body>
Add Comment
Please, Sign In to add comment