Oct 10th, 2009, 4:50 PM
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:
And it needs to be:
For the text area, it's a little different...
Should be...
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!
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!