Hi All-
I have an HTML form that gets processed by a separate PHP script. Once form.html is submitted, process.php runs. If the user forgets to type in a form field, like their name or email, an error message comes up on another page asking them to complete the form. As it is now, the form has already reset itself, I would like the fields that are correct to keep what they've already typed in.
So they get the errors, and a link to go back to the form.
This should be easy enough, but nothing I try works. In the HTML form value fields, I've tried:
<input type="text" name="fname" value="<?php '$_POST[fname]'; ?>" size="25" />
I either get nothing in the box, or '$_POST[fname]'. What's going wrong with this? Thanks for any help!