I have been fighting this for around 3 hrs now, looking and search for possible reasons and solutions but cannot find anything.

Any help would be greatly appreciated.

Thanks in advance.

mlseim

01-06-2010, 08:21 PM

blush ... I love your bad word list.

I would start removing your various sections, one at a time
until it starts to work. Start with the isBot test, and keep
eliminating all of those "odd tests" that you're doing. One of
them must always be failing.

That much validation is mind boggling.
Wouldn't a simple captcha (or Re-Captcha) be enough?

WebbieWorks

01-06-2010, 08:23 PM

I just grabbed the code from

http://www.jemjabella.co.uk/php-scripts-php-mail-form

I never did a email form with code, I always used a program, but it wouldnt work for this type form,

I will start removing it all 1 by 1 and see what happens. Very much appreciate the quick response

WebbieWorks

01-06-2010, 09:01 PM

Ok, I did alot of editing on this and I got the form to email, but its not emailing all the submitted info.

Here is what I did. I added a mailer.php and edited my code to suit, All it is sending is the name.

This is getting frustrating. I know it is something very simple but no matter what I try or read it is not working.

_Aerospace_Eng_

01-06-2010, 09:06 PM

So what information isn't being submitted? I'm going to guess its the file input. You need to handle that part differently. Simply getting the post value doesn't create an attachment automatically. And your $body variable has none of your post variables.

$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message"
Of course you aren't going to see anything if variables don't exist. I guess thats what happens when you just copy and paste.

WebbieWorks

01-06-2010, 09:09 PM

Ahhh, I knew it was something very simple. Very much apprecieted.

tomws

01-06-2010, 09:09 PM

$name_field catches the POSTed variable in that code block above. $message doesn't exist, though. Not sure what the deal is with $email_field. It's set up to catch the data, though, I think.

WebbieWorks

01-06-2010, 09:17 PM

Ok, Now I have the form emailing everything but the uploaded file. So thats a big step.

Now just have to figure out how to attach the uploaded file to the email.