Results 1 to 10 of 14

Thread: Make fmbadhandler repopulate name and email fields | Simple How-to

Threaded View

  1. #1
    Join Date
    Jan 2008
    Posts
    29

    Default Make fmbadhandler repopulate name and email fields | Simple How-to

    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
    Last edited by Jeremy; 15-May-2008 at 06:16 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. simple formmail
    By gwbosma in forum Community Support
    Replies: 1
    Last Post: 20-Apr-2006, 09:22 PM
  2. Need directions to make a questionnaire form
    By amythepoet in forum Community Support
    Replies: 1
    Last Post: 08-Feb-2006, 02:34 PM
  3. Some fields not remembered using fmbadhandler
    By penta5 in forum FormMail Subscription Support
    Replies: 1
    Last Post: 12-Oct-2005, 10:35 PM
  4. HTML Email does not work if not all fields are filled.
    By onlmega in forum FormMail Subscription Support
    Replies: 7
    Last Post: 03-Aug-2004, 11:02 PM
  5. Deriving fields from other fields
    By russellr in forum HOWTO Guides and Tips
    Replies: 0
    Last Post: 13-May-2004, 12:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •