Jump to content

ornclo

Members
  • Posts

    20
  • Joined

  • Last visited

    Never

Everything posted by ornclo

  1. okay, so I got it fixed in the form part. In the example that I have that tells me how the validation works, it is in the same form. How do you make the php "secret" if it is in the same form? I am still learning how this php all works, so forgive my ignorance. Thank you for the help at least on the error, you where correct. Still doesn't work entirely, but at least there is no syntex error. Again, any help would be greatly appreciated.
  2. in the php or in the form.html part??
  3. I am asking for some simple help, please. :-) I have a form that I would like to validate very specific information on - without having it validate in the php and loose what the client just put into the site. I have found an example in this "validation" process. However, when I open this up in Dreamweaver CS4, I have an error on line 67 as a syntex error. I am unable to see where this would be. All I need is a verification on the name, the phone number, and the email address. Here is what I have so far.... **This is contact form** <script language="JavaScript"> function checkForm() { var cname, cemail, cphone with(window.document.Contact1) { cname = name; cemail = EmailFrom; cphone = phone; } if(trim(cname.value) == '') { alert('Please enter your name'); cname.focus(); return false; } else if(trim(cemail.value) == '') { alert('Please enter your email'); cemail.focus(); return false; } else if(!isEmail(trim(cemail.value))) { alert('Email address is not valid'); cemail.focus(); return false; } else if(trim(cphone.value) == '') { alert('Please enter message subject'); csubject.focus(); return false; } } else { cname.value = trim(cname.value); cemail.value = trim(cemail.value); cphone.value = trim(cphone.value); return true; } } function trim(str) { return str.replace(/^\s+|\s+$/g,''); } function isEmail(str) { var regex = /^[-_.a-z0-9]+@(([-_a-z0-9]+\.)+(ad|ae|aero|af|ag| ai|al|am|an|ao|aq|ar|arpa|as|at|au|aw|az|ba|bb|bd|be|bf|bg| bh|bi|biz|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg| ch|ci|ck|cl|cm|cn|co|com|coop|cr|cs|cu|cv|cx|cy|cz|de|dj|dk| dm|do|dz|ec|edu|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb| gd|ge|gf|gh|gi|gl|gm|gn|gov|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn| hr|ht|hu|id|ie|il|in|info|int|io|iq|ir|is|it|jm|jo|jp|ke|kg| kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly| ma|mc|md|mg|mh|mil|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|museum| mv|mw|mx|my|mz|na|name|nc|ne|net|nf|ng|ni|nl|no|np|nr|nt|nu| nz|om|org|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|pro|ps|pt|pw|py|qa| re|ro|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|st| su|sv|sy|sz|tc|td|tf|tg|th|tj|tk|tm|tn|to|tp|tr|tt|tv|tw|tz| ua|ug|uk|um|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za| zm|zw)|(([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5])\.){3}([0-9][0-9]?|[0-1][0-9][0-9]|[2][0-4][0-9]|[2][5][0-5]))$/i; return regex.test(str); } </script> Below is the php file that I am using.... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Emailing Form Data</title> </head> <body> <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); //declaration of variables $EmailFrom = trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "ornclo@aol.com"; $Subject = "Women United Contact"; $Name = trim(stripslashes($_POST['name'])); $Address = trim(stripslashes($_POST['address'])); $City = trim(stripslashes($_POST['city'])); $State = trim(stripslashes($_POST['state'])); $Phone1 = trim(stripslashes($_POST['phone1'])); $Phone2 = trim(stripslashes($_POST['phone2'])); $Phone3 = trim(stripslashes($_POST['phone3'])); $email = trim(stripslashes($_POST['email'])); foreach ($_POST['visit'] as $value) { $Church = trim(stripslashes($value)); } foreach ($_POST['hear'] as $hear) { $About = trim(stripslashes($hear)); } foreach ($_POST['help'] as $help) { $Ask = trim(stripslashes($help)); } $Comments = trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (($EmailFrom)=="") $validationOK=false; if (($Name)=="") $validationOK=false; if (($Phone1)=="") $validationOK=false; if (($Phone2)=="") $validationOK=false; if (($Phone3)=="") $validationOK=false; if (($email)=="") $validationOK=false; if (($Comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; exit; } // prepare email body text $Body = "\n"; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone1; $Body .= "-"; $Body .= $Phone2; $Body .= "-"; $Body .= $Phone3; $Body .= "\n"; $Body .= "Attended Church of God?: "; $Body .= $Church; $Body .= "\n"; $Body .= "How did you hear about us?: "; $Body .= $About; $Body .= "\n"; $Body .= "What can we do to help you?: "; $Body .= $Ask; $Body .= "\n"; $Body .= "Comments: "; $Body .= $Comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; } ?> </body> </html> Unless there is a way to change this line: print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; to have it keep in the same window - or even possibly open a NEW window with the "error.html" - that would be fine as well. Again - when I open up Contact1.html in DW CS4, I get a syntext error on line 67. When I use just straight form, it opens to new window with php - > error.html, which in turns looses everything the client just typed. Any help is greatly appreciated and thank you in advance. Blessings! If asked, I can attach the files if needed as well, but the code is pretty self-explain.
  4. :D Thank you so very much. It worked. I'm still learning about the PHP thing. Again, thank you. {cookie}{Gift Card:Chili's}
  5. My form works correct, and submits correctly. However, when I do submit the form, I always get an error on "Line 73" of my php code, but then it goes to the "ok.html" and sends the email. If anyone could possible give me any advice, that would be fantab-ulistic. Here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Emailing Form Data</title> </head> <body> <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); //declaration of variables $EmailFrom = trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "patty@womenunitedministries.org"; $Subject = "Women United Contact"; $Name = trim(stripslashes($_POST['name'])); $Address = trim(stripslashes($_POST['address'])); $City = trim(stripslashes($_POST['city'])); $State = trim(stripslashes($_POST['state'])); $Phone1 = trim(stripslashes($_POST['phone1'])); $Phone2 = trim(stripslashes($_POST['phone2'])); $Phone3 = trim(stripslashes($_POST['phone3'])); foreach ($_POST['visit'] as $value) { $Church = trim(stripslashes($value)); } foreach ($_POST['hear'] as $hear) { $About = trim(stripslashes($hear)); } foreach ($_POST['help'] as $help) { $Ask = trim(stripslashes($help)); } $Comments = trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (($EmailFrom)=="") $validationOK=false; if (($Name)=="") $validationOK=false; if (($Address)=="") $validationOK=false; if (($City)=="") $validationOK=false; if (($State)=="" ) $validationOK=false; if (($Phone1)=="") $validationOK=false; if (($Phone2)=="") $validationOK=false; if (($Phone3)=="") $validationOK=false; if (($Comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; exit; } // prepare email body text $Body .= "\n"; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone1; $Body .= "-"; $Body .= $Phone2; $Body .= "-"; $Body .= $Phone3; $Body .= "\n"; $Body .= "Attended Church of God?: "; $Body .= $Church; $Body .= "\n"; $Body .= "How did they hear about us?: "; $Body .= $About; $Body .= "\n"; $Body .= "What would you like us to do for you?: "; $Body .= $Ask; $Body .= "\n"; $Body .= "Comments: "; $Body .= $Comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; } ?> </body> </html> The line that is having the issue is this line: $Body .= "\n"; No matter what I do - even if I take it out, or just put " " there, it still reads an error. Any suggestions would be helpful. Thanks in advance.
  6. ornclo

    PHP

    finally got it to work. You code: foreach ($_POST['visit'] as $visit) { $Church[] = trim(stripslashes($visit)); foreach ($_POST['hear'] as $hear) { $About[] = trim(stripslashes($hear)); foreach ($_POST['help'] as $help) { $Ask[] = trim(stripslashes($help)); I just needed to take off the [] of the $Church[]. Thank you for your help...
  7. ornclo

    PHP

    yea, I figured that out. But that didn't help. However, I have found a site where it explains the foreach a little more. Forgive me for ignorance in this matter. I just wish to solve this and be on my way. Do I need to declare the array elements in the form as well as in the php?? As per example of the code below, do I need to assign each array a number or varaialbe or name? This is in the html form itself... table class="part2" align="center"> <tr> <td rowspan="2"> <div class="QuesTxt">Have you ever attended Church Of God?</div> </td> <td> <div class="options"><input type="radio"name="visit[1]" checked value="Yes">Yes</div> </td> </tr> <tr> <td> <div class="options"><input type="radio"name="visit[2]" value="No">No</div> </td> </tr> </table> from here, I question the following. Do I need to define the array in the PHP? $Church = array('1' => 'Yes', '2' => 'No'); foreach ($_POST['visit'] as $value) { $Church[] = trim(stripslashes($value)); } Please let me know so I can be on my way... Thank you in advance.
  8. ornclo

    PHP

    To Gevans: You posted: <?php foreach($_POST['hear'] as $value){ $About[] = trim(stripslashes($value)); } I followed your advice and added that to my code. for each of the three selections that have either a radio or checkbox, I have done the following: foreach ($_POST['visit'] as $visit) { $Church[] = trim(stripslashes($visit)); foreach ($_POST['hear'] as $hear) { $About[] = trim(stripslashes($hear)); foreach ($_POST['help'] as $help) { $Ask[] = trim(stripslashes($help)); When I run the form and hit submit, I now get an error returned: Parse error: parse error, unexpected $ in /home/content/a/c/h/achurch4life/html/emailme.php on line 126 On line 126 of my code, is blank. It is the line just after the closing </html> tag.
  9. ornclo

    PHP

    the $value part - is that just something that I can define??? like I have visit, do I just use $visit???
  10. ornclo

    PHP

    Forgot to add... When I fill out the form, I get 4 error's, but then I get the ok.html. When I get the email, I get the forms part that I filled out, but I get "Array" on the email.
  11. ornclo

    PHP

    I solved one problem, and have another. I am no expert with PHP, so any help is good. I have a form with questions with a radio and check boxes. Here is a exert from my form: <table class="part3"" align="center"> <tr> <td colspan="2"> <div align="center" class="QuesTxt">How did you find this site?</div> </td> </tr> <tr> <td> <div class="options"><input type="checkbox" name="hear[ ]" value="@ Church">@ church</div> </td> <td> <div class="options"><input type="checkbox" name="hear[ ]" value="From a friend">From a friend</div> </td> </tr> <tr> <td> <div class="options"><input type="checkbox" name="hear[ ]" value="Google">Google</div> </td> <td> <div class="options"><input type="checkbox" name="hear[ ]" value="Other">Other</div> </td> </tr> </table> In my PHP code, I have: $Church = trim(stripslashes($_POST['visit'])); $About = trim(stripslashes($_POST['hear'])); $Ask = trim(stripslashes($_POST['help'])); My question is simple. Is this how I am suppose to write the code for an array in the PHP to have it read it correctly? Please let me know. Thank you.
  12. Well, I have attempted several different things to get the radio and check boxes to show. Could someone help me out with figuring this out??
  13. ah crap. Okay, now - how do I get the radio and checkbox to work. I read at one point about arrays. Do I need to set up an array of some sort so that when the email sends it will send the answer they selected?
  14. yay!! It worked!! I had that changed, I forgot to throw it out to the server. Sorry. Thank you so much. If I wanted to send that info as a CC to someone, how would I do that??
  15. okay, now I'm back to just having the error.html page show up. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Emailing Form Data</title> </head> <body> <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); //declaration of variables $EmailFrom = trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "ornclo@aol.com"; $Subject = "Women United Contact"; $Name = trim(stripslashes($_POST['name'])); $Address = trim(stripslashes($_POST['address'])); $City = trim(stripslashes($_POST['city'])); $State = trim(stripslashes($_POST['state'])); $Phone1 = trim(stripslashes($_POST['phone1'])); $Phone2 = trim(stripslashes($_POST['phone2'])); $Phone3 = trim(stripslashes($_POST['phone3'])); $Church = trim(stripslashes($_POST['visit'])); $About = trim(stripslashes($_POST['hear'])); $Ask = trim(stripslashes($_POST['help'])); $Comments = trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (($EmailFrom)=="") $validationOK=false; if (($Name)=="") $validationOK=false; if (($Address)=="") $validationOK=false; if (($City)=="") $validationOK=false; if (($State)=="" ) $validationOK=false; if (($Phone1)=="") $validationOK=false; if (($Phone2)=="") $validationOK=false; if (($Phone3)=="") $validationOK=false; if (($Comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; exit; } // prepare email body text $Body .= ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone1; $Body .= "-"; $Body .= $Phone2; $Body .= "-"; $Body .= $Phone3; $Body .= "\n"; $Body .= "Attended Church of God?: "; $Body .= $Church; $Body .= "\n"; $Body .= "How did they hear about us?: "; $Body .= $About; $Body .= "\n"; $Body .= "What would you like us to do for you?: "; $Body .= $Ask; $Body .= "\n"; $Body .= "Email: "; $Body .= $EmailFrom; $Body .= "\n"; $Body .= "Comments: "; $Body .= $Comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; } php?> </body> </html>
  16. Okay, did as you said and took out all the TRIM. Not to be incrediably stupid, but did I need to take out the "stripsplashes" as well? This is the error I get now: Parse error: parse error, unexpected T_IS_EQUAL in /home/content/a/c/h/achurch4life/html/emailme.php on line 46
  17. Very well. I will take out TRIM and see what happens. As far as the email thing - I was just doing a send to me, as well as a CC. Didn't know if it would work. For now, I will only send to main first.
  18. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Emailing Form Data</title> </head> <body> <?php ini_set ("display_errors", "1"); error_reporting(E_ALL); //declaration of variables $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "ornclo@aol.com,ornclo@aol.com"; $Subject = "Women United Contact"; $Name = Trim(stripslashes($_POST['name'])); $Address = Trim(stripslashes($_POST['address'])); $City = Trim(stripslashes($_POST['city'])); $State = Trim(stripslashes($_POST['state'])); $Phone1 = Trim(stripslashes($_POST['phone1'])); $Phone2 = Trim(stripslashes($_POST['phone2'])); $Phone3 = Trim(stripslashes($_POST['phone3'])); $Church = Trim(stripslashes($_POST['visit'])); $About = Trim(stripslashes($_POST['hear'])); $Ask = Trim(stripslashes($_POST['help'])); $Comments = Trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (Trim($Name)=="") $validationOK=false; if (Trim($Address)=="") $validationOK=false; if (Trim($City)=="") $validationOK=false; if (Trim($State)=="") $validationOK=false; if (Trim($Phone1)=="") $validationOK=false; if (Trim($Phone2)=="") $validationOK=false; if (Trim($Phone3)=="") $validationOK=false; if (Trim($Comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; exit; } // prepare email body text $Body .= ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone1; $Body .= "-"; $Body .= $Phone2; $Body .= "-"; $Body .= $Phone3; $Body .= "\n"; $Body .= "Attended Church of God?: "; $Body .= $Church; $Body .= "\n"; $Body .= "How did they hear about us?: "; $Body .= $About; $Body .= "\n"; $Body .= "What would you like us to do for you?: "; $Body .= $Ask; $Body .= "\n"; $Body .= "Email: "; $Body .= $EmailFrom; $Body .= "\n"; $Body .= "Comments: "; $Body .= $Comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; } php?> </body> </html>
  19. Thank you to both. I have fixed the code. That wasn't the issue. The "error code" is my own error.html screen that comes up. In other words, it doesn't send the form to my email like it is suppost to. Where do I put the part? Or which part are you referring to? I will put that error test code you mentioned in.
  20. To Whome May know more about PHP than I... I will be the first to tell you that I get frustrated with PHP (at the moment) because I don't know everything there is to know about it, and I haven't had a chance to really work with it. I am on a time line with a web page that I am creating for my church. I am no Web Master, and a lot of what I have learned is self - taught or looking online to find my answer. This one seems to be a bit more tricky to solve for me. I always seems to simple when I go online, but it never works. So here is my situation. I have a form that I have created that has text fields, radio buttons, and check boxes in it. I have created the php code for this as well. When I hit submit, all I get is my error.html page saying that something in the form is incorrect. So all I asking if someone would be kind enough to look over the code and let me know what I need to do to make it work. Also, ANY additional information that you can give me, would be fantastic. I want to learn more about PHP and how it works and ways to make it simpler. Here is the form: http://www.achurch4life.net/WUcontact.html Here is my code for the php file: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Emailing Form Data</title> </head> <body> <?php //declaration of variables $EmailFrom = Trim(stripslashes($_POST['EmailFrom'])); $EmailTo = "ornclo@aol.com,ornclo@aol.com"; $Subject = "Women United Contact"; $Name = Trim(stripslashes($_POST['name'])); $Address = Trim(stripslashes($_POST['address'])); $City = Trim(stripslashes($_POST['city'])); $State = Trim(stripslashes($_POST['state'])); $Phone1 = Trim(stripslashes($_POST['phone1'])); $Phone2 = Trim(stripslashes($_POST['phone2'])); $Phone3 = Trim(stripslashes($_POST['phone3'])); $Church = Trim(stripslashes($_POST['visit'])); $About = Trim(stripslashes($_POST['hear'])); $Ask = Trim(stripslashes($_POST['help'])); $Comments = Trim(stripslashes($_POST['comments'])); // validation $validationOK=true; if (Trim($EmailFrom)=="") $validationOK=false; if (Trim($Name)=="") $validationOK=false; if (Trim($Address)=="") $validationOK=false; if (Trim($City)=="") $validationOK=false; if (Trim($State)=="") $validationOK=false; if (Trim($Phone1)=="") $validationOK=false; if (Trim($Phone2)=="") $validationOK=false; if (Trim($Phone3)=="") $validationOK=false; if (Trim($Comments)=="") $validationOK=false; if (!$validationOK) { print "<meta http-equiv=\"refresh\" content=\"0;URL=WUerror.html\">"; exit; } // prepare email body text $Body .= ""; $Body .= "Name: "; $Body .= $Name; $Body .= "\n"; $Body .= "Address: "; $Body .= $Address; $Body .= "\n"; $Body .= "City: "; $Body .= $City; $Body .= "\n"; $Body .= "State: "; $Body .= $State; $Body .= "\n"; $Body .= "Phone: "; $Body .= $Phone1; $Body .= "-"; $Body .= $Phone2; $Body .= "-"; $Body .= $Phone3; $Body .= "\n"; $Body .= "Attended Church?: "; $Body .= $Church; $Body .= "\n"; $Body .= "How did they hear about us?: "; $Body .= $About; $Body .= "\n"; $Body .= "What would you like us to do for you?: "; $Body .= $Ask; $Body .= "\n"; $Body .= "Email: "; $Body .= $EmailFrom; $Body .= "\n"; $Body .= "Comments: "; $Body .= $Comments; $Body .= "\n"; // send email $success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); // redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=WUok.html\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=Wuerror.html\">"; } php?> </body> </html> Again, any and all help would be greatly appreciated. Thank you in advance. Christopher
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.