Posted by Gary on 06/13/06 17:14
Hi --
I'm using a PHP form-mail processor to return guestbook entries, website
order-forms etc. A couple of minor glitches in it; was wondering if any
PHP'ers could offer some snippets or advice on this?
1: my form returns with an empty "from" field to my email box. Some ISP
reject such mails as spam. My form does have an input field named "email",
and my script has functions to process (below) but they're not passed on
somehow.
2: is there a simple function that would discard input fields that are
empty? On one of my order form pages, there are 20 items, which form a long
empty list on the form return, if only one item is purchased.
3: is there a simple way of coding the form to insert line breaks between
the resulting fields in the email output? Right now all the fields are
single spaced; be nice to add a couple line breaks to divide up the form
functionally.
thanks for any suggestions ..
Gary
[Back to original message]
|