To exclude realname, you can use "Exclude" in "email_options" or, to concatenate the names, you can use "derive_fields" in email_options."
Browse Creating HTML Forms in the documentation.
Dr. T.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
I have been searching around the forum...really I have tried, but cannot find info on how I control what the subject line reads when I receive emails submitted from my form. Currently I just get a blank subject.
Also in my form results I get in my email there is a field called real name: It is blank see my form results:
email: joe@test.com
realname:
firstname: Joe Form Test 01
lastname: Joe Form Test 01
company: Joe Form Test 01
address: Joe Form Test 01
city: Joe Form Test 01
state: Joe Form Test 01
zip: Joe Form Test 01
country: Joe Form Test 01
Can I get rid of that or at least have it populate with the users name that submitted teh form?
Thanks to anyone that can help me. It is hugely appreciated.
-Joe
p.s. if for any reason it helps to see my form, here it is: https://www.hollins-law.com/form3.php
Last edited by woodlandplayer; 26-Apr-2011 at 05:04 AM.
To exclude realname, you can use "Exclude" in "email_options" or, to concatenate the names, you can use "derive_fields" in email_options."
Browse Creating HTML Forms in the documentation.
Dr. T.
To define the subject you'd just use the following hidden field inside your form:
If you want your form visitor to define what the subject is, then you just need to use "subject" for the form field name where they either enter the text or select from a list of options.HTML Code:<input type="hidden" name="subject" value="Whatever You Want Your Subject to Be">
The word "subject" IS case-sensitive and must be lower-case.
ginger
Ginger and DR T thanks so much for your guidence! I fixed both of my issues!
For anyone else running into the same problem on the realname deal just put this in the body of your html:
<input type="hidden" name="derive_fields" value="realname=firstname+lastname,
fullphone=area.phone,
address=street*suburb" />
SO happy my form works and my results come in just the way I wanted!!!
Thank you thank you!!!
I am trying to get the subject line of the email to be the same value as the test box filled in by the user which would be the address. Is there a way to get this to work. I have looked though the threads and can not figure this out from the other users. Below is the html code i am using to define the text box and the line for the subject. top"><label for="userAddress">Address *</label></td>
<td valign="top"><input type="text" name="userAddress" maxlength="80" size="42"></td>
<input type=hidden
name="subject" value=userAddress>
Thank you for any help!
Every time I test it out it returns the name useraddress instead of the value from the text box field
Craig
Hi,
The following should work.
gingerHTML Code:<input type="hidden" name="derive_fields" value="subject=userAddress">
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks