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 form data on error validation
#4
Ok I got it figured out...

The error was actually within the form itself... the calls to the values need to be in a value=" ". This is one you had:

PHP Code:
<input type="text" name="email" maxlength="20" style="width:150px" <?php echo htmlspecialchars(@$fields['email']); ?>/> 

And it needs to be:

PHP Code:
<input type="text" name="email" maxlength="20" style="width:150px" value="<?php echo htmlspecialchars(@$fields['email']); ?>"/> 

For the text area, it's a little different...

PHP Code:
<textarea name="comments" <?php echo htmlspecialchars(@$fields['comments']); ?> style="width: 319; height: 158"></textarea>/> 

Should be...

PHP Code:
<textarea name="comments" style="width: 319; height: 158"><?php echo htmlspecialchars(@$fields['comments']); ?></textarea>/> 

That worked for me when I duplicated your form. I left my previous response about adding the "else" command in the API code, so if you took it out and that doesn't work, just try sticking it back in there.

Hope that helps!
Reply


Messages In This Thread
keeping form data on error validation - by robotech - Oct 9th, 2009, 3:11 PM
RE: keeping for data on error validation - by msaz87 - Oct 9th, 2009, 11:12 PM
RE: keeping for data on error validation - by robotech - Oct 10th, 2009, 3:08 PM
RE: keeping form data on error validation - by msaz87 - Oct 10th, 2009, 4:50 PM
RE: keeping form data on error validation - by msaz87 - Mar 31st, 2012, 7:29 PM
RE: keeping form data on error validation - by msaz87 - Jul 23rd, 2012, 1:50 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)