PDA

View Full Version : PHP email form not working



mrs.leaf
09-16-2006, 12:21 PM
I have an email form at http://www.cascadecpa.com/contact_5.htm that uses a script but does not work on the blue host server.

The exact page at http://www.asij1961.org/cascadeform.htm which is on a different server works just fine.

Can someone look at the first page and tell me why it does not work on bluehost?

Thanks very much.

areidmtm
09-16-2006, 12:32 PM
Post the huggins-email-form-script-v1.0.php file. There is something wrong in that file.

If you want a really good php mail script, I’d suggest using, PHPMailer (http://phpmailer.sourceforge.net/), the best pre-made mail script in my opinion.

vegasgwm
09-17-2006, 06:58 AM
yup error in the script. you should look closely at that function(missing argument) or post it here

James S. Huggins
09-18-2006, 08:52 AM
Hi, guys.

James S. Huggins here.

I wrote the script in question.

It works on my server. The feedback I receive seems to indicate it works on most servers. However, it doesn't work on this server.

The script and documentation is available here.

http://JSH.us/hefs

Any assistance you'd care to provide is appreciated.

brod(d)ers
09-18-2006, 07:02 PM
Just a suggestion, but are the php error checking settings the same on both servers? This can be a sneaky issue if they are different! The code may work fine on a server with error checking off, but if some of the code is dirty, a server with the php error checking will fall to pieces. For example instead of using $variable when you want to use the variable, you may need to use $_REQUEST[variable] etc...

Just my 2 cents worth,

good luck!

Sam

mrs.leaf
09-19-2006, 07:04 AM
Since the script was not working, I have removed the page and replaced it with something else.
Sorry about the inconvenience, but I did not want this to become an exercise in futility.
Mrs. Leaf

James S. Huggins
10-08-2006, 10:15 AM
Thank you for posting about the script error and for your suggestions.

The error was that the script referenced several form variables implicitly, instead of explicitly retrieving them. This worked on my server, but clearly does not on PHP5 servers (set as default) and some pHP4 servers which changed the default for register_globals.

I have updated Huggins' Email Form Script to correct this error.


I've also updated the documentation.

Because I have just created a new version of Huggins' Email Form Script I have created a new self-hosted ezine to provide information about future changes to Huggins' Email Form Script.

This ezine will broadcast irregularly to advise subscribers of fixes and enhancements. It will not be a regularly scheduled ezine.

Because you are using this script on a production website, I recommend subscribing so you will receive information about future fixes and enhancements.

You can get the new script and documentation here:
http://JSH.us/hefs

There is also a link to the new ezine page.

You can go directly to the ezine page here:
http://JSH.us/hefs-bulletin



James S. Huggins



...