The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 871 - File: showthread.php PHP 7.4.12 (Linux)
File Line Function
/showthread.php 871 errorHandler->error



FORUMS


The Form Tools forums are no longer active, but the old posts have been archived here. Please see the Help page on how to get help / report issues.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keeping values in fields during errors
#1
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_...rm_fields/ and can't seem to figure it out...

I've also tried:
Code:
<?=htmlspecialchars(@$fields["email"])?>

with no luck...

Any ideas?

Thanks!
Reply


Messages In This Thread
Keeping values in fields during errors - by msaz87 - Aug 24th, 2009, 11:28 PM
RE: Keeping values in fields during errors - by Ben - Sep 1st, 2009, 6:11 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)