Hi,
Yes, if you can wait a few days, the new version will be released, and it has this feature.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
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
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/
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.
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:
Have a good weekend.Code:<input type="hidden" name="mail_options" value="NoEmpty" />![]()
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Oh. So that's how you do it. It worked. Thank you very much. Enjoy your weekend too.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks