PHP Tutorial: Create an HTML Contact Form Part 2 -HD-
Uploader Comments (RiverCityGraphix)
All Comments (28)
-
how do i upload it to web server please help i am using webs and when ever i upload it say contact_form.php and when i click it the codes come up but not the form please help me man
-
How do i make it send to my website email?
-
@RiverCityGraphix The file has been uploaded to my server. However, when I try to access the page it simply downloads the php file.
-
@Nastevenson if you fine a way could you foreword that over thanks I yet to resolve that download issue...
-
@Nastevenson You must upload the php file to a web server. If you try to run it locally it will just try to download it.
-
I'm having the same issue. All of the browsers download the php page as a file when I try to access the page. Am I missing something?
-
didn't work
-
Great video! I'm just having a couple of problems though. It's giving me the following error:
Parse error: syntax error, unexpected T_VARIABLE in /home/content/59/4274259/html/
alpinegrafix/newman-constructi on/contact.php on line 12 It's on the line with the following code: $body = <<<EOD
I followed your instructions to the letter...any suggestions? I'm in a real time crunch on this..you can email me directly at alpinegrafix@gmail.com
Thanks!
-
Thank you very much, I did all the steps from this tutorial and is a total success! I always receive emails from my website. super cool! please keep making more tutorials.
I followed you instructions to the tee...I sent a message from my webpage...it's been 10 mins and I have not received the message....could it be the server being slow? I did not receive any error messages so i am assuming so. please help
Dosonina1 7 months ago
@Dosonina1 Yes, sometimes it takes a little while for emails to send. Also, don't forget to check your spam folder as they might appear there until your email realizes they are not spam.
RiverCityGraphix 7 months ago
Error on line 21..
Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\xampp\htdocs\objekwisata\admin\contact_form.php on line 21
please help me...
qhiena 8 months ago
@qhiena Chances are everything is working correctly. The only problem is that you are using xampp which has no built in mail processor. When you upload it to a web server everything should work ok assuming you have no other errors.
RiverCityGraphix 8 months ago