I am working on (Localhost) XAMPP Server 3.2.1
This is php file MyAjax.php:
<?php
$data = isset($_REQUEST['data']);
if($data == "logout")
{
echo "<br />inside logout";
}
else if($data == "getReminder")
{
echo "<br />inside getReminder";
}
?>
Output of following url should be inside getReminder
http://ift.tt/1Oyttam
And Output of following url should be inside logout
http://ift.tt/1Ibfo6c
But both URLs are returning the same output inside logout.
Please help me what is wrong in this?
Aucun commentaire:
Enregistrer un commentaire