I take a form and do variable checking in jquery then pass it to a php file in ajax but I am getting this notice
Notice: Undefined index: your_name in C:\\xampp\\htdocs\
$_POST['your_name'] cannot be assigned to the variable $your_name when the "your_name" isn't posted cause it doesn't exist .. you have to check if it exists first and then assign it to the variable .. the code should be like the following :
if (isset($_POST['your_name'])) {
$your_name = $_POST['your_name'];
}
else {
echo "something is wrong here";
}