Guest User

Untitled

a guest
Feb 19th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <html>
  2. <body>
  3. <?
  4. echo "<form action='".$_SERVER['PHP_SELF']."' method='post'>";
  5. ?>
  6. Name: <input type="text" name="name" /><br>
  7. ID: <input type="text" name="id" /><br>
  8. <input type="submit" />
  9. </form>
  10. </body>
  11. <br>
  12. <br>
  13. </html>
  14. <?
  15. $name = $_POST["name"];
  16. $id = $_POST["id"];
  17. print "$name";
  18. mysql_query("INSERT INTO APSLOG (Name, UserID) VALUES ('$name', '$id')");
  19. print "Names Added";
  20. ?>
Add Comment
Please, Sign In to add comment