Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

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

  1. #11
    Join Date
    Dec 2003
    Posts
    3,980

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

    Hi,

    I am however left a little puzzled by this issue. I understand that 'realname' and 'email' are treated as 'special values' by the PHP scripts (although I am uncertain why this is so); but not why they get 'lost' when the user is returned to the form. Rather than requiring the proposed work-around, which I did try but threw up one or two quirks, is there no scope for modifying the PHP of fmbadhandler to pass them back in a similar fashion to other values?
    You are right to be puzzled.

    There is a logic to this, but it's incomplete logic.

    "realname" and "email" should be re-filled on return from error, despite the fact that they are special fields.

    In other words, they are "special special fields".

    It's on the TO DO list, and has been for years. But, because there's a perfectly good workaround, it keeps getting put off.

    It probably takes 2 life times and 100 million lines of code to become the perfect software designer.

    I'm making fewer bad implementation decisions than I did 30 years and 20 million lines of code ago....in another 20 years, maybe there'll only be a couple per year.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  2. #12
    Join Date
    Feb 2009
    Location
    St.Albans, UK
    Posts
    9

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

    Russell,

    Thanks for the quick response. It's not really a big deal; and arguably there's some security benefit in making a genuine person re-enter their name and e-mail address again, which is quick to do anyway. What really bugs me with some forms is when a failed submission loses the entire content of a long message I've just carefully composed, and thankfully FormMail doesn't do that! However, if you do ever get round to sorting this quirk out, I'm sure we would all appreciate it.

  3. #13
    Join Date
    May 2009
    Posts
    3

    Thumbs up Re: Make fmbadhandler repopulate name and email fields | Simple How-to

    Thanks Jeremy for very helpful post.

    One minor but important correction
    <input type="hidden" name="mail_options" value="exclude=email;realname" />

    should be:

    <input type="hidden" name="mail_options" value="Exclude=email;realname" />

    with capitalised Exclude

    Now works pefectly.

    Grateful thanks to Russell

    Peter

  4. #14
    Join Date
    Aug 2007
    Posts
    78

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

    Quote Originally Posted by about2flip View Post
    When I hit my retun_link there is nothing repopulated in the fields
    Make sure you specify the "type" attribute on the <input> tags.

    I just encountered this problem and found this the hard way.

    Coding this:
    Code:
    <input size="50" name="Name">
    results in the field NOT being filled in.

    Coding this:
    Code:
    <input size="50" name="Name" type="text">
    works.

    Peace...

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
  •