I am putting together a PHP page that allows a user to fill in certain information in a form and hit the submit button and it saves it to the database. I have all of it on one page (man PHP is fun).
If the user hits submit but a couple of the fields are empty (using the strlen() function), it goes into an else that shows the form again. I wanted to make sure the priorly entered values still showed up, so am rebuilding the form in HTML with the value= tag, using the PHP variables to populate those fields that were already submitted. Works like a dream. 🙂
Except for the textarea form fields. I have the dropdown menu working well, and the text fields working well. However, it seems for some reason it doesn't want to put the value='$variable' back into the textarea form field.
Are these handled differently? Anyone know why this could be?
Thanks.