Page 2 of 2

Run remote php

Posted: Fri Jul 17, 2015 7:26 am
by TonyS

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


Run remote php

Posted: Sun Jul 19, 2015 7:31 pm
by TonyS

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