Guest User

Untitled

a guest
Dec 14th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1.  
  2. // file1.php
  3.  
  4. $(".signed").click(function(evt) {
  5.  
  6. $.post("test.php", {test: 'test'});
  7. $("#test").load("test.php");
  8. })
  9.  
  10.  
  11. // file2.php
  12.  
  13. $test = $_POST['test'];
  14.  
  15. echo $test['0'];
  16. echo $test;
  17.  
  18.  
  19. if(isset($test))
  20. {
  21.  
  22. echo "yes";
  23.  
  24. }
  25. else {
  26.  
  27. echo 'fail';
  28.  
  29. }
Add Comment
Please, Sign In to add comment