Mirco,

What I do is (in a JavaScript function):

window.location = "<?= $_SERVER['PHP_SELF'] ?>?<?= $_SERVER['QUERY_STRING'] ?>";

and then populate the fields this way:

<input type="text" value="<?= $_GET['thefield'] ?>">

or

<textarea><?= $_GET['thearea'] ?></textarea>

HTH
--
Un gran saludo/Big regards...
   Arturo Barajas, IT/Systems PPG MX (SJDR)
   (427) 271-9918, x448

> -----Original Message-----
> From: Mirco Ellis [mailto:[EMAIL PROTECTED]
> Sent: Lunes, 03 de Marzo de 2003 12:30 p.m.
> To: Php-General (E-mail)
> Subject: [PHP] Keeping existing data in textarea's
> 
> 
> 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?
> 
> Mirco
> 
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to