View Full Version : PHP Form Mail
stagefright
9-14-03, 07:51 AM
I've created a form on my website, and want the contents of the form to be e-mailed to me on the user clicking "submit". I used the Powweb PHP tutorial to check for empty fields and then send it. But for some reason it won't work: the user is taken to an error page entitled "resource not allowed".
http://www.stagefrightweb.com/application/members - what am I doing wrong?
Thanks.
For your PHP to be recognized by the server you should save it as a .php document. The one you have up and that you are trying to use to execute your mail commands is a .htm file.
stagefright
9-14-03, 02:34 PM
Thanks a lot for your help, and for your swift response.
I've tried saving the page as a .php file
http://www.stagefrightweb.com/application/members/index.php
However, this still does not work. Do I need a special program to make .php files, or can I open the .htm file in wordpad and save it as a .php? Can .php files include HTML codes?
Thanks
HTML code can be in a PHP file, and you don't need anything special.
stagefright
9-14-03, 02:44 PM
Thanks very much for helping.
So how would you create a .php file? Notepad -> Save As -> All Files -> pagename.php?
And why isn't http://www.stagefrightweb.com/application/members/index.php working?
Once again, thanks a lot for this
Parse error: parse error in /www/s/stagefright/htdocs/application/members/index.php on line 51
Check the syntax on line 51.
You probably have a typo because the php interpreter does not understand the code.
stagefright
9-14-03, 03:41 PM
Thanks to everyone who's helped sort this problem out. I have it up and running and I can close the thread.
Thank-you
Joe
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.