Hi Jake,
You shouldn't add your fields to the $SPECIAL_FIELDS array.
If you remove your fields from there, and leave it in its original state, that should fix the problem.
The $SPECIAL_FIELDS array is for internal FormMail.php purposes.
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
The script works very good, and I receive an email, but the*no email contains no information.* I expect this is due to the*form customization.
Overall the documentation is excellent, far superior to most scripts, but this may be an area to upgrade.**Addressing how to modify*the script to accomodate the variety of forms people may want to produce.
This is the form:
<form name="formmail"* action="http://www.printxpress.us/formmail.php" method="post">
<input type="hidden" name="recipients" value="CustomerService_of_printxpress.us">
<input type="hidden" name="required" value="FirstName,LastName,Title,Company,email,Comments">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
<input type="hidden" name="subject" value="Customer Service Inquiry">
This is the portion of the script which I modified, but still recieve no information:
$SPECIAL_FIELDS = array(
******* "FirstName", *// the first name of the person who filled in the form
******* "LastName", *// the last name of the person who filled in the form
******* "Title", **** // the title name of the person who filled in the form
******* "Company", **** // the company name of the person who filled in the form
******* "email",** **// email address of the person who filled in the form
******* "Comments",** *// comments from the person who filled in the form
******* "recipients",** // comma-separated list of email addresses to which we'll send the results
******* "required",**** // comma-separated list of fields that must be found in the input
******* "good_url",**** // URL to go to on success
******* "bad_url",***** // URL to go to on error
******* "subject",***** // subject for the email
******* "env_report",** // comma-separated list of environment variables to report
******* "filter",**// a support filter to use
******* "logfile",**// log file to write to
******* "csvfile",**// file to write CSV records to
******* "csvcolumns",*// columns to save in the csvfile
******* "crm_url",**// URL for sending data to the CRM
******* "crm_spec",**// CRM specification (field mapping)
******* "alert_to");*** // email address to send alerts (errors) to
Here is the information I recieve in the email:
Send
==================================
REMOTE_HOST=
REMOTE_ADDR=4.5.19.154
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 1.0.3705)
REMOTE_USER=
Thank You,** Jake
Hi Jake,
You shouldn't add your fields to the $SPECIAL_FIELDS array.
If you remove your fields from there, and leave it in its original state, that should fix the problem.
The $SPECIAL_FIELDS array is for internal FormMail.php purposes.
Good job and a very fast response.* I like it and thank you.
As displayed in my previous entry, I have all fields required.* However, invalid email entries repeatedly pass through undetected.* The violations are gross, not minor.* An example follows:
To: CustomerService@printxpress.us
Wrom: HDMNNSKVFVWRKJVZCMHVIBGDADR<snipped>
And, as a follow-up,*is it possible to remove the line "realname:" from the process so it doesn't appear in the*email?
Jake
Hi,
Look for this line in formmail.php (aprox line 1249):
and comment it out like this:Code:**$results = "realname: ".$SPECIAL_VALUES["realname"].BODY_LF.$results;
With invalid email addresses, FormMail doesn't try to validate email addresses.* If someone puts garbage into your form, then that will get sent through.Code:// **$results = "realname: ".$SPECIAL_VALUES["realname"].BODY_LF.$results;
If you like, we can add some basic checking to the next version.
*
Hi Russell,
My Formmail.php is fresh, how can I get information send by users?
The goodtemplate and errortemplate is working fine, but I don't have any information in mailbox.
Here is the information I recieve in the email:
REMOTE_HOST=
REMOTE_ADDR=207.38.187.173
HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)
AUTH_TYPE=
REMOTE_USER=
Thanks a milion
Ricardo
Hi,
Have you started with our sample form? Get that working and model your form on that.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hello, Russell!
My God, I'm 48 hours here without sleep...![]()
Yes, I'm using all template suplied by tectite.com
Everything is working, just 2 problens.
1-Email Contains No Information, like what happened to JakeForest.
2-verifyimg not working, but I just send email to the hosting asking for php upgrade.
Thanks
Ricardo
Hi,
OK, I'm confused.
You've got our sample form, you've entered your name, email address, selected a favourite color, and vehicles you can operate, and entered a message.
When you hit submit you get an email which is blank. Is that what you're saying?
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hi,
BTW, JakeForest modified FormMail in a way he should not have. That's what caused his problem. If you haven't done that, then you won't have a that problem.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Hi,
It's true, I get only report, Please take a look.
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
I did not changes on $SPECIAL_FIELDS =
What is the fild do I need change to receive the messages?
Thank you for your patience!
It's my first time working with forms and php![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks