TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Run remote php

It wont let me put the script in so basically I used ajax

$.ajax({
url:'http://etc" plus variables in the usual way
});

Hope this helps

TonyS
Posts: 0
Joined: Thu Jun 11, 2015 12:11 pm

Run remote php

Had issues with how variables were interpreted in the php script so I changed the code to

$.ajax({
url: "http://services/php.file",
type: "get",
data:{"ref":''+ref+''},
success: function(response) {
//Do Something
},
error: function(xhr) {
//Do Something to handle error
}
});

and used

$_GET['ref']

in the php file

Return to “Issues”