Re: Keeping existing data in textarea's
| From: | Greg Donald | Date: | Mon, 03 Mar 2003 18:51:18 +0000 |
| Subject: | Re: Keeping existing data in textarea's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-137942@lists.php.net to get a copy of this message | ||
On Mon, 3 Mar 2003, Mirco Ellis wrote:
>Hi, I have a developed a simple Helpdesk for our small company. When users
>log calls they get an alert message warning them that they must fill in all
>the fields if they have missed a field. At the moment if they happen to
>forget a field, they receive the alert message, but then have to start all
>over again. How do I keep the existing data in the textareas from
>dissapearing after the alert message?
$fill = isset($_GET['textareafield']) ? $_GET['textareafield'] : "";
$html = <<<EOF
<textarea name="textareafield">$fill</textarea>
EOF;
--
Greg Donald
http://destiney.com