Hi, please try the below code : if (!isset($_POST['submit'])) { ?> <form method="post" action="test2.php"> <p> Please write your name: </p>...
404 is Page not found error, I think there is the path issue of php file which you called in ajax
Separate names with a comma.