I wanted to get the data from the ajax post which are the student name and student religion(abdullah and muslim) values in the passwrapper.php and post those values on the c
try this,
<?php
include 'student.php';
executePass();
if ((!isset($_POST["lastName"])) and (!isset($_POST["lastReligion"])))
{
//do nothing
}
else
{
//post the values(Abdullah and Muslim) on the console.log on the passwrapper.php
//i do not want to disrupt the executepass()
echo '<script>console.log("Firstname='.$_POST["lastName"].' lastReligion='.$_POST["lastReligion"].'");</script>';
}
?>