The PHP code requires:
a) That the "action" points to the same page. I'm not sure if "#" will work, but it might.
b) That the file extension is ".php" not ".html".
c) It is run on a server. I.e. You can't run it locally in your browser (as you can html).
d) You should also add error checking to prevent the "mail" command being triggered inappropriately. As it stands it will trigger an email every time the page is accessed or refreshed!!!
P.S. Just tested the "#" and it works. I've learned something today ;)
09-08-2012, 07:38 AM
Still not working
I have tried this on a server already and nothing worked, i also tried changing the page to .php and still nothing :(
09-08-2012, 10:38 AM
Are you trying it on a web server, and is php and php mail enabled?
09-08-2012, 12:01 PM
The form is an html page, the form action points to a form to mail php processor on your server. If processor is not there nothing happens.
Many free php form to mail scripts available on line.
The ones that offer html response and/or attachment capibilities a little shakey.