This chapter shows how to keep the values in the input fields when the user hits the submit button.
PHP – Keep The Values in The Form
To show the values in the input fields after the user hits the submit button, we add a little PHP script inside the value attribute of the following input fields: name, email, and website. In the comment textarea field, we put the script between the <textarea>
and </textarea>
tags. The little script outputs the value of the $name
, $email
, $website
, and $comment
variables. Continue reading PHP Complete Form Example