Jump to content
Killersites Forums

Teaxtarea Wiped Out After Form Submission


Landslyde
 Share

Recommended Posts

And this is an issue because if the user has made a mistake on the form and has to make a correction, he/she also now has to retype everything in the textarea again before re-submission. And the textarea's the only input device that loses its input. Input boxes are fine, as are the selected select options. Is this a natural behavior? Is there a way around it?

Link to comment
Share on other sites

When the user submits the form, you'd want to store the data from the textarea, and then insert it back into the textarea when you re-show the form with the error message.

 

Take a look at this tutorial: http://www.w3schools.com/php/php_forms.asp, clicking right through the chapters on making form fields required and validating the data. Specifically look at the "Keep the values in the form" section of http://www.w3schools.com/php/php_form_complete.asp.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...