ajax post values is empty

后端 未结 1 1932
盖世英雄少女心
盖世英雄少女心 2020-12-20 06:12

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

相关标签:
1条回答
  • 2020-12-20 06:21

    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>';
    
    }
    ?>
    
    0 讨论(0)
提交回复
热议问题