Guest User

Untitled

a guest
Dec 9th, 2018
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. if(isset($_POST['submit']))
  2. {
  3.  
  4. sleep(2)
  5. header("Location: http://example.com/newsletters/create_newsletter.php?template=new");
  6.  
  7. if(isset($_GET['template'])
  8. {
  9. echo "hello robert now you are working on the template";
  10. }
  11. }
  12.  
  13. <?php
  14.  
  15. $template = "";
  16.  
  17. if(isset($_GET['template']))
  18. {
  19. $template = $_GET['template'];
  20. }
  21.  
  22.  
  23. if(isset($_POST['submit']))
  24. {
  25. sleep(2)
  26. $messagename = $_POST['messagename'];
  27. $subject = $_POST['subject'];
  28. header("Location: http://example.com/newsletters/create_newsletter.php?template=new");
  29.  
  30. if(isset($_GET['template'])
  31. {
  32. echo "hello robert now you are working on the template";
  33. }
  34. }
  35. ?>
  36.  
  37. <form method="post">
  38. <input type="text" name="messagename" value="">
  39. <input type="text" name="subject" value="">
  40.  
  41. <input type="submit" name="submit" name="submit" class="btn btn-primary" value="Next Step">
  42. </form>
Add Comment
Please, Sign In to add comment