i want to send two variables values from one file, which have XML code where i have function which include the php file, so i want it should include this php file with my passed values, am doing like following way
function load(){
var id=cn;
var name="zuni";
downloadUrl('info.php?id2=id&name2=name', function(data) {
});
code in info.php
if (isset($_GET['id'])) {
$id2 = $_GET['id2'];
$name2 = $_GET['name2'];
echo "id is :". $id2;
echo "name is :". $name2;
}
its output is showing like this
id is:id
name is: name
its not displaying variable value but variable name, i want its value not name any one can check whats wrong with this code ?
id2=id&name2=namevalue ofid2isid, same toname2. And scripts outputs just what you've passed to it.