I need to, in case of an unsuccessful attempt to submit the form, the entered values are saved in the fields. I saw it doing so:
<form id="FeedbackForm" name="FeedbackForm" method="post" action="request.php"> <input type="text" id="name" name="name" value="<?php echo $_POST["name"]; ?>"/> <!-- продолжение формы --> </form> That is, we substitute the values of the $_POST array in the fields, if any.
But for some reason, it does not work for me, that is, there is no substitution in the fields. The request.php script returns a page with a form (its work has already been debugged) when the sending is banned due to input errors.
What could be the reason?
var_dump($_POST);What does it show on the form receipt page? - Vismanarray (size=0)when sending is unsuccessful ... My script sends mail and is terminated viadie()if at least one field is entered incorrectly. - Lateral Gleb$_POST. - Visman$_POSTdata, for some reason it still shows thearray (size=0)when returning to the page with the form after the script is interrupted. - Lateral Glebdie()destroys the$_POSTarray? - Lateral Gleb