php form email issue
Web Development
3
Posts
3
Posters
0
Views
1
Watching
-
I'm trying to send some form variable to my email address, however it doesn't work and I can't seem to figure out why. Any help would be appreciated. Thanks!
-
I'm trying to send some form variable to my email address, however it doesn't work and I can't seem to figure out why. Any help would be appreciated. Thanks!
Hi, Try replacing:
if ($_POST) {
With:if ($_SERVER['REQUEST_METHOD']=="POST") {
If I remember right $_POST, along with $_GET, $_REQUEST, $_SESSION and $_COOKIE, are always set no matter what HTTP method is used to call the script. Graham. -
I'm trying to send some form variable to my email address, however it doesn't work and I can't seem to figure out why. Any help would be appreciated. Thanks!