// redirect to success page if ($success){ print "<meta http-equiv=\"refresh\" content=\"0;URL=contactthanks.php\">"; } else{ print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">"; } ?>
My issues are:
1. I receive the email, but the content is empty 2. How do I modify the From field so that it would show actual email it came from instead of static email I set.. 3. I would like to get rid of the re-direct page as I'm using this form on the footer of a website..
Thanks a bunch in advance and sorry for very basic question!
tip: if you're not getting a bunch of errors like Notice: Undefined variable: name... when you run your original code, then you need to turn on error reporting. It will be a great help with troubleshooting. Turn on error reporting in your php.ini file, or you can do it at the top of your script by using
I downloaded Chris's simple contact form, and, since I know pretty much nothing about PHP, I was hoping to get some help..
Below is my markup:
And this is the PHP that I modified (I was hoping that's what I had to do) to match my markup:
My issues are:
1. I receive the email, but the content is empty
2. How do I modify the From field so that it would show actual email it came from instead of static email I set..
3. I would like to get rid of the re-direct page as I'm using this form on the footer of a website..
Thanks a bunch in advance and sorry for very basic question!
Think about what you're doing.
$Email and $email are not the same. PHP variables are case sensitive.
3) Remove the print which redirects to contactthanks.php
Hi, I'm having the same problem with an empty email. I removed 'print' which just made the whole thing hang.
Any advice to get this working?
$variableand$VariableARE NOT the same.tip: if you're not getting a bunch of errors like
Notice: Undefined variable: name...when you run your original code, then you need to turn on error reporting. It will be a great help with troubleshooting. Turn on error reporting in your php.ini file, or you can do it at the top of your script by usingerror_reporting( -1 );This is a really good contact form if you don't know what you're doing. http://www.fastsecurecontactform.com
I'm thinking I'll do a quick upgrade for Chris' form...