+ Reply to Thread
Results 1 to 5 of 5

Thread: form field realname ?

  1. #1
    Join Date
    Nov 2005
    Posts
    9

    Default form field realname ?

    i have 3 fields in my form, but none named "realname".
    When the mail is sent, this field shows up in the mailbody, empty.

    Why?

    The mail, formmail sends:
    Code:
     email: mail
     realname: 
     name: jan
     message: test
     
     ==================================
    
    REMOTE_ADDR=192.168.0.192
    HTTP_USER_AGENT=Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041122 Firefox/1.0

  2. #2
    Join Date
    Jul 2005
    Posts
    175

    Default Re: form field realname ?

    hi

    because 'realname' is a required field as 'email' is
    for example if you have named your field for the name as 'name' and not as 'realname' you can use derive_fields in your form like the following:

    <input type="hidden" name="derive_fields" value="realname=name" />

    or if you want to split your 'realname' into two input fields ie. in firstname and lastname:

    <input type="hidden" name="derive_fields" value="realname=firstname+lastname" />

    this line has to be added after your form tag, but i think this is clear anyway ...

    erik.

  3. #3
    Join Date
    Nov 2005
    Posts
    9

    Default Re: form field realname ?

    ok, but the field still shows up in my email.
    is there a way to get it out of the mail? its an english word and german costumers would ask questions about. ...

    thanx
    jan

  4. #4
    Join Date
    Jul 2005
    Posts
    175

    Default Re: form field realname ?

    yip, i think you can use an email template (plain.txt) - a simple .txt file
    therefore you add this line to your form:
    <input type="hidden" name="mail_options" value="PlainTemplate=plain.txt" />

    then you create an plain.txt file in which you put ie. $realname where you want to have the realname... :

    ---------------------------------------------------------------------------
    Zusammenfassung Ihrer .... :
    ---------------------------------------------------------------------------



    ABSENDER:
    ************************************

    $realname


    ERREICHBAR UNTER:
    ************************************

    E-Mail: $email


    SONSTIGE MITTEILUNGEN:
    ************************************

    $message



    ---------------------------------------------------------------------------
    ENDE der Mitteilung.
    ---------------------------------------------------------------------------

    __
    this file you have to put in the folder defined in formmail.php as $TEMPLATEDIR (about line 3143)
    there you have to define where the folder is on your server

    i think that's it

    same you can do with an html-template if you want to have sent emails as html

    erik

  5. #5
    Join Date
    Jul 2005
    Posts
    175

    Default Re: form field realname ?

    here's the link to the howto (PlainTemplate):
    http://www.tectite.com/fmhowto/plaintmplt.php

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Similar Threads

  1. Realname plus "Submit" image map
    By coldfused in forum FormMail Subscription Support
    Replies: 14
    Last Post: 28-Jan-2006, 07:59 PM
  2. Is the recipients field required in html form?
    By adam2003w in forum FormMail Subscription Support
    Replies: 1
    Last Post: 15-Jun-2005, 03:54 AM
  3. Form from address as Field Value email
    By Chek in forum FormMail Subscription Support
    Replies: 3
    Last Post: 12-Apr-2005, 10:07 PM
  4. Including entered form field in email subject?
    By camelot in forum FormMail Subscription Support
    Replies: 1
    Last Post: 23-Mar-2005, 08:52 PM
  5. Problem with Form Field
    By joe3366 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 13-Jun-2004, 10:02 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