Forum Moderators: coopster
I've got a form in html/php and I've got checks in place to see if fields are empty. If a field is empty the form seems to refresh. I've managed to retain the text in the input fields by using the following:
<input type ="text" name ="CustName" value="<?php echo $CustName?>">
However I haven't been able to find anyway of doing this for a textarea. Is there anyway of doing this?
Thanks,
mag1
PHP calls that the short_open_tag [php.net]. Other options for invoking PHP and more reading is available in the PHP manual under Escaping from HTML [php.net].