Feedback/Contact Email Form
This is a ready to go PHP script that can be pasted into a blank .php document. Run it through your webserver after changing $myemail to the value of your E-Mail address. It also sends the referring URL to help you know where the visitor was before he clicked to contact you.
Posted on Sep 4, 2004 1:57 am
nice man
Posted on Sep 4, 2004 4:31 pm
Awesome.
Posted on Oct 31, 2005 11:03 pm
I have a freewebs account and when I entered this code and tested it, it said abouve the form "This code is inoperational!". Don't know what that means.
Posted on Nov 1, 2005 3:52 pm
Is anyone able to help me on this?
Posted on Nov 2, 2005 9:21 pm
Hmm, that's odd. Does your host allow PHP scripts? Also, do they allow you to use the mail() function? You might want to talk to them about it.
Posted on Nov 3, 2005 7:59 pm
Well, I investigated, and freewebs makes every acount wait 7 days before it can post any forms, to make sure people aren't just sing them for that.
Posted on Feb 1, 2007 1:52 am
Wonderfully simple, clean, easy to use and fit for purpose. Well done and thanks.
Posted on Mar 28, 2007 9:28 pm
For those who are having trouble, perhaps it's because you need to put the </form> tag at the end of the script.
Posted on Mar 31, 2007 8:35 pm
Thanks wizkid! Don't know how that got cut off. I've corrected it.
Posted on May 12, 2007 7:27 am
Why is it that none of my browsers will show the page?
I use RapidWeaver, i have pasted it into the html code.
But Firefox prompts me to download the PHP file, safari just displays the code as text.
Am i doing something wrong? =(
Please help!
-Rory
Posted on May 13, 2007 4:40 am
Hello, we are having trouble with your script because the e-mailing part doesnt work. We have tried the form out and we don't get any e-mails. We have tried over 4 email addresses! Plz help!
Posted on May 17, 2007 1:45 am
Quote: Why is it that none of my browsers will show the page?
I use RapidWeaver, i have pasted it into the html code.
But Firefox prompts me to download the PHP file, safari just displays the code as text.
Am i doing something wrong? =(
Please help!
rory, Are you running it on an Apache server with PHP? If you are just loading the .php document through explorer it won't run.
Quote: Hello, we are having trouble with your script because the e-mailing part doesnt work. We have tried the form out and we don't get any e-mails. We have tried over 4 email addresses! Plz help!
j-and-f, Maybe check with your web host and see if they allow you to send mail with PHP.
Posted on Jul 15, 2007 9:45 am
Brilliant form. But can anyone tell me how to send the error text to a popup?
Posted on Jul 17, 2007 8:33 am
Thanks for this nice, easy bit of php.
How can you add multiple email addresses for the $myemail ?
thanks
Posted on Aug 20, 2007 9:20 am
Answer for chopper: within the quotes, multiple emails seperated by comma works.
eg: 'aaaa@somewhere.com,
bbb@somewhereelse.org ,
ccc@another.com '
Question - How do we get the 'from' header in these emails to not be blank? Can we specify a from address??
Posted on Nov 7, 2007 10:02 am
This code is working great for me, and it was very simple to figure out. But I have one question. I just tested the form and it showed up in my email right away, but I was wondering what the "Referer" are was meant for (because it's blank for me) and when I try to reply to the person that sent it the reply to address is this
"-To:"@node4.c15
again, great script
Enter comment here..
Please
Register or
Login to start posting comments.