Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function print(str) {
- var userID = str;
- alert(userID);
- $.ajax({
- type: 'GET',
- url: 'ROOMS.php',
- data: {userID:userID},
- success: function(data)
- {
- alert("success");
- }
- });
- }
- //PHP
- <?php
- if(isSet($_GET['userID']))
- {
- $id = $_GET['userID'];
- }
- echo $id;
- ?>
- if(isSet($_GET['userID']))
- if(isset($_GET['userID']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement