Aug 24th, 2009, 11:28 PM
Hey all,
I'm still trying to get the hang of the API and one question I had was keeping values in the fields during error handling... in other words, if someone enters something in one field, forgets to in another and it errors to tell them they need to fill that one in, the other data is still present in the loop.
For the field I'm playing around on I have:
But it doesn't keep the values on the error loop.
I've been looking at this page: http://docs.formtools.org/tutorials/api_...rm_fields/ and can't seem to figure it out...
I've also tried:
with no luck...
Any ideas?
Thanks!
I'm still trying to get the hang of the API and one question I had was keeping values in the fields during error handling... in other words, if someone enters something in one field, forgets to in another and it errors to tell them they need to fill that one in, the other data is still present in the loop.
For the field I'm playing around on I have:
Code:
<input type="text" name="email" size="30" value="<?=@$fields["email"]?>">
But it doesn't keep the values on the error loop.
I've been looking at this page: http://docs.formtools.org/tutorials/api_...rm_fields/ and can't seem to figure it out...
I've also tried:
Code:
<?=htmlspecialchars(@$fields["email"])?>
with no luck...
Any ideas?
Thanks!