recover text area from form (solved)
Moderator: General Moderators
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
recover text area from form (solved)
Is there any way to recover the current content of a text area from a form without using javascript, just with php?
Last edited by thosecars82 on Sun May 25, 2008 11:12 am, edited 1 time in total.
Re: recover text area from form
I don't understand what you want to do. PHP is a server-side language. When it runs, there is no page in anyone's browser yet. What text area are you referring to? Something in the current PHP script?thosecars82 wrote:Is there any way to recover the current content of a text area from a form without using javascript, just with php?
Re: recover text area from form
Do you mean you want to recover the text that was entered into the form before, in the event that you have to report an error to the user? In that case, you could simply do:
Code: Select all
<?php
echo '<textarea name="TEXTAREANAME">'.$_REQUEST['TEXTAREANAME'].'</textarea>';
?>
-
thosecars82
- Forum Commoner
- Posts: 94
- Joined: Thu Apr 03, 2008 6:31 am
- Location: Arganda, Madrid
- Contact:
Re: recover text area from form
Ok, I understand. Thanks both of you, I was wrong. I need javascript as califdon said. I want to mark this post as solved or close it but I do not know how.
Re: recover text area from form
If you are logged in to the forum, just go back to your original post and click on the "Edit" button, you should be able to edit the Subject.