View Full Version : Help with details not coming through on email

08-29-2007, 02:13 AM
To anyone,

I have been re doing my site under php and have re done my form (contact page) all the elements are there and it goes to my action page saying thanks etc etc. Then when i recieve the email there is no details. Also it is not validating the fields.

If you go to www.quantumphotography.net/test.php (http://www.quantumphotography.net/test.php) then go to contact link you may see what I mean. if i go into www.quantumphotography.net (http://www.quantumphotography.net) which is still the old html design and to the contact page there and fill in the info it comes through fine on email with the details.

My menu or navigation is a php menu, could this be conflicting.

I hope someone can help
Thanks darren

08-29-2007, 07:46 AM
Ok, your problem is that you have limited the form area to be only around the submit button, all other fields are outside the form.

Copy all fields, delete them, stretch the form area sufficiently, and then paste back the fields using the Paste Icon. Save / republish, and refresh your page before testing.

Unless you have also changed the script , you should rename your Email field to email or there will be no senders address in the mails and they might get blocked.

08-29-2007, 09:10 AM
Just the person I was hoping would see my problem. You are a god Naval. Did what you said and works a treat.

Thank you very much.


08-31-2007, 11:45 AM
I am having the same problem, but I have double checked to ensure that my form field is surrounding all my form boxes (and it has since I developed the form). Yet, everytime I test the email it comes through blank.

Here is the code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Treasured Xpressions Photography, Fredericksburg Virginia</title>
$mailto = "olivia@treasuredxpressions.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
$mailsubj = "Web Inquiry";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
if ($key!="submit")
$mailbody .= "$key : $val\n";
mail($mailto, $mailsubj, $mailbody, $mailhead);

Sorry if this is a simple error. I don't know how to write code,etc. and am completely new to developing a website.
Thanks in advance for the help!
www.treasuredxpressions.com (http://www.treasuredxpressions.com)

08-31-2007, 03:56 PM
Yours is a different problem: you need to set the encoding type of your form in "multipart/form data". Also, rename the email field from Email to email (lowercase e). Edit the form, save, republish and refresh your browser before testing

08-31-2007, 05:54 PM
Thanks...that worked.

Question, though... I have the combo/list box that will allow multiple selections. When the email comes through after the submit, why will only one of the selections come through on the email?

08-31-2007, 06:35 PM
You need to add [] at the end of the field name. Even this way, i am not sure that the standard script that is included in the forms tutorial will send you multiple values, i believe that it will send you the value "Array" because in fact that is an array. You need to use ABVFP to acheive that automatically.