Advertisement
steven00o

create user dot php

Mar 22nd, 2017
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.65 KB | None | 0 0
  1. <?php
  2.  
  3. session_start();
  4. if($_SESSION['login'] !="OK")
  5. {
  6. header(Location:'login.php');
  7. exit();
  8. }
  9. ?>
  10.  
  11. <html>
  12. <body>
  13.  
  14. <h1>Create a new user</hr>
  15.  
  16. <p>Please enter details for the new user:</p>
  17. <form action="insert_user.php"method="post">
  18. <table>
  19. <tr>
  20. <td align="right">Username:</td>
  21. <td><input size="20" type="text" size="20" maxlength="15" name="new_username"></td>
  22. </tr>
  23. <tr>
  24. <td align="right">Password:</td>
  25. <td><input size="20" type="password" size="20" maxlength="15" name="new_password"></td>
  26. </tr>
  27. <tr>
  28. <td> </td>
  29. <td colspan="2" align="left"><input type="submit" value="Create user"></td>
  30. </tr>
  31. </table>
  32. </form>
  33. </body>
  34. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement