The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
![]() |
Keeping values in fields during errors - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Keeping values in fields during errors (/showthread.php?tid=262) |
Keeping values in fields during errors - msaz87 - Aug 24th, 2009 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: 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_refilling_form_fields/ and can't seem to figure it out... I've also tried: Code: <?=htmlspecialchars(@$fields["email"])?> with no luck... Any ideas? Thanks! RE: Keeping values in fields during errors - Ben - Sep 1st, 2009 Heya, Have you read this thread? http://forums.formtools.org/showthread.php?tid=243 There's an omission in the documentation that doesn't cover this scenario. I'll be updating it this coming weekend, but in the meantime that thread may help. - Ben RE: Keeping values in fields during errors - msaz87 - Sep 1st, 2009 Yeah I saw that thread after looking around a bit.. I forgot to update this thread to reflect that. Sorry! But thanks! |