Guest User

Untitled

a guest
Jan 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php session_start(); ?>
  2. <!DOCTYPE html>
  3. <head>
  4. <link rel="stylesheet" href="style.css" type="text/css" />
  5.  
  6. </head>
  7. <body>
  8. <?php include("menu.php");?>
  9.  
  10. <form action="#" method="post">
  11. Name: <input name="users" type="text" />
  12. <input type="submit" name="Submit" />
  13. </form>
  14.  
  15. <?php
  16. if ($_POST['submit']!=""){
  17. if ($_POST['users']!=""){
  18. $_SESSION['users']=$_POST['users'];
  19. $users = $_POST['users'];
  20. $_SESSION['stuff'] = $_POST['users'];
  21. echo "You ordered ". $users . " .<br />";
  22. echo "Thank you for ordering from Tizag Art Supplies!";
  23.  
  24.  
  25. ?>
  26.  
  27. <?php include("footer.php"); ?>
  28.  
  29. </body>
  30. </html>
Add Comment
Please, Sign In to add comment