With my PHP script, I produce a variable
Expand|Select|Wrap|Line Numbers
- var information1 = 'ip=127.0.0.1&port=80';
checkStatus.php?information1
Now, as far as I can see, that isn't supposed to happen, its supposed to send the contents of the variable "information1".
This is my script for the AJAX
Expand|Select|Wrap|Line Numbers
- $.ajax({
- url:'inc/checkStatus.php',
- data: currentData,
- type: "GET",
- cache: false,
Expand|Select|Wrap|Line Numbers
- var currentData = "information" + number;
To sum this message up -
The way I wrote the "currentData" variable, is it correct? If not, what is the correct way of writing it, and if it is, do you have any idea why AJAX is sending "information1" as text instead of a variable?
Any help is appreciated as always, thank you in advance!