0

When I Pass Variable to php It Gives an Error that is :

Notice: Undefined index: email in C:\xampp\htdocs\TableTennis\admin\inc\chat.php on line

if(window.location.hash!=""){
  var search=window.location.hash;
        var result =search.split('=');
        var email=result[1];
   $.post("inc/chat.php",{email:email});
}

In PHP:

<?php 
echo $_POST['email'];
 ?>
Rohit Arora
  • 2,246
  • 2
  • 24
  • 40

0 Answers0