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
#2
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
Reply
#3
Yeah I saw that thread after looking around a bit.. I forgot to update this thread to reflect that. Sorry! But thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)