Make fmbadhandler repopulate name and email fields*
When the return link is clicked on the error page, the following entries and changes in the HTML form will make fmbadhandler repopulate the name and email fields of the form, as it now repopulates the message field only:
1. Add the line below to the HTML form, as is:
<input type="hidden" name="derive_fields" value="email=Email,realname=Name" />
(EDIT:The unnecessary reference has been edited out of the above line according to Russel's input in the next post, and the code works perfectly.)
2. Add the line below to the HTML form, as is, to prevent receiving emails with its content appearing twice:
<input type="hidden" name="mail_options" value="exclude=email;realname" />
3. Find the following line in the HTML form, and replace the word realname with Name, as shown:
<input type="text" name="Name" />
4. Find the following line in the HTML form, and replace the word email with Email, as shown:
<input type="text" name="Email" />
The content of the emails you'll receive will appear as follows:
Name: Name of sender
Email: eMail address of sender
mesg: Sender's message.
* Although I got this to work perfectly, I really can't write code; I simply followed directions from the links listed below.
If those of you who can write code see how this code should be changed and/or improved, please post the changes?
http://www.tectite.com/fmdoc/creating_forms.php
http://www.tectite.com/vbforums/show...realname+email
Bookmarks