+ Reply to Thread
Results 1 to 5 of 5

Thread: Removing empty variables from eMail reply

  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Default Removing empty variables from eMail reply

    Hello,

    hoorray! I just got Formmail to do what it´s supposed to do. While I am at it I´d like to streamline it a bit.

    The form I am using formmail on provides some optional checkboxes and fields. Is there a way to get formmail to completely leave out those empty fields when sending the reply email.

    Example (in German):
    ---
    Vorname: me
    Name: myself
    Strasse: down the lane
    PLZ: 12345
    Ort: Athome
    Tel: 123
    Fax:
    ---
    "Fax:" is not required, so actually it does not have to show up in the email.

    Please let me know if there is a way on how to alter the script and what the syntax would be.

    I really think you are all doing a great job with your script and this forum.
    Thank you in advance

    Prospero

  2. #2
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Removing empty variables from eMail reply

    Hi,

    Yes, if you can wait a few days, the new version will be released, and it has this feature.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jul 2004
    Posts
    4

    Default Re: Removing empty variables from eMail reply

    Hi,

    I downloaded the latest version and the empty fields are still being emailed to me in my tests. How can I modify your script to stop the empty fields from being sent?

    In FORMMAIL.PHP,
    the $VALID_MAIL_OPTIONS, "NoEmpty" is set to TRUE.
    But it still doesn't work. Even after testing it to FALSE.

    Thanks.
    Last edited by onlmega; 25-Jul-2004 at 06:36 AM.

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: Removing empty variables from eMail reply

    Hi,

    You need to specify this in your HTML form, not in formmail.php.

    So, first step is to reverse your change to formmail.php.

    Then, create a hidden field in your HTML form like this:
    Code:
    <input type="hidden" name="mail_options" value="NoEmpty" />
    Have a good weekend.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    Jul 2004
    Posts
    4

    Default Re: Removing empty variables from eMail reply

    Oh. So that's how you do it. It worked. Thank you very much. Enjoy your weekend too.

+ 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. Return All Variables To Form Page On Error
    By cornernote in forum FormMail Subscription Support
    Replies: 12
    Last Post: 31-Oct-2004, 10:20 PM
  2. cvs file empty? help!
    By zoe77 in forum FormMail Subscription Support
    Replies: 6
    Last Post: 20-Jun-2004, 03:06 AM
  3. Return All Variables To Bad_Form Page On Error
    By vladimir in forum FormMail Subscription Support
    Replies: 2
    Last Post: 07-Jun-2004, 06:13 PM
  4. HTML email reply
    By aussieincanada in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-Jun-2004, 07:07 AM
  5. Adding Attachment Variables
    By Bella in forum FormMail Subscription Support
    Replies: 1
    Last Post: 12-Apr-2004, 10:43 AM

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