Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2014
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. function print(str) {
  2. var userID = str;
  3. alert(userID);
  4. $.ajax({
  5. type: 'GET',
  6. url: 'ROOMS.php',
  7. data: {userID:userID},
  8. success: function(data)
  9. {
  10. alert("success");
  11. }
  12. });
  13. }
  14.  
  15. //PHP
  16.  
  17. <?php
  18. if(isSet($_GET['userID']))
  19. {
  20. $id = $_GET['userID'];
  21. }
  22. echo $id;
  23. ?>
  24.  
  25. if(isSet($_GET['userID']))
  26.  
  27. if(isset($_GET['userID']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement