Creating a javascript alert with php that has a php variable inside?

后端 未结 4 1903
忘了有多久
忘了有多久 2021-02-08 13:14

I\'m making a form that is supposed to create a javascript alert when some fields aren\'t filled out or filled out properly. I want to be able to take the error messages I\'

4条回答
  •  清歌不尽
    2021-02-08 13:31

    alert('{$_SESSION["success"]}');";
     unset($_SESSION["success"]);
    ?>
    

    Use this code it would work correctly

提交回复
热议问题