darkfreaks Posted October 20, 2007 Share Posted October 20, 2007 hmmm changing it to send might work ??? Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374278 Share on other sites More sharing options...
Ninjakreborn Posted October 20, 2007 Share Posted October 20, 2007 That's what i reflected in the code I rewrote. Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374282 Share on other sites More sharing options...
darkfreaks Posted October 20, 2007 Share Posted October 20, 2007 i know im so not used ot having a value in my input :-\ Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374284 Share on other sites More sharing options...
jonathanellis Posted October 21, 2007 Author Share Posted October 21, 2007 I still get only a white screen when I click submit on: http://staging.volumeforlife.com/contact.html <?php //********************************************************** // * // volumeforlife.com * // PHP mailer script created by versionthree * // * //********************************************************** if(isset($_POST['submit'])) { // basic mail variables $to = "[email protected]"; //for multiple email addresses separate addresses with a comma $subject = "Website Comment"; $from = "This has just been sent from www.volumeforlife.com"; // other details $name_field = $_POST['thename']; $phone = $_POST['phone']; $email = $_POST['email']; $comment = $_POST['comment']; $date = date("D M d, Y H:i:s"); $message = "$date\n\nName: $thename\nPhone: $phone\nEmail: $email\n\nComment: $comment\n "; // Sends email and redirects if ($_POST['submit']=="send") { mail($to, $subject, $message, $from); header("Location: http://staging.volumeforlife.com/contact_success.html"); }else { header("Location: http://staging.volumeforlife.com/contact_deny.html");} } } ?> Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374398 Share on other sites More sharing options...
darkfreaks Posted October 21, 2007 Share Posted October 21, 2007 get rid of value="send" and then try what you had before i guarantee it will work <?php //********************************************************** // * // volumeforlife.com * // PHP mailer script created by versionthree * // * //********************************************************** // basic mail variables $to = "[email protected]"; //for multiple email addresses separate addresses with a comma $subject = "Website Comment"; $from = "This has just been sent from www.volumeforlife.com"; // other details $name_field = $_POST['thename']; $phone = $_POST['phone']; $email = $_POST['email']; $comment = $_POST['comment']; $date = date("D M d, Y H:i:s"); $message = "$date\n\nName: $thename\nPhone: $phone\nEmail: $email\n\nComment: $comment\n "; // Sends email and redirects if ($_POST['submit']=="true") { mail($to, $subject, $message, $from); header("Location: http://staging.volumeforlife.com/contact_success.html");} elseif ($_POST['submit']=="false") { header("Location: http://staging.volumeforlife.com/contact_deny.html");} } ?> also i dont think you need isset when you already are checking if submit is true or false Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374399 Share on other sites More sharing options...
jonathanellis Posted October 21, 2007 Author Share Posted October 21, 2007 Still no go ??? Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374408 Share on other sites More sharing options...
darkfreaks Posted October 21, 2007 Share Posted October 21, 2007 <?php //********************************************************** // * // volumeforlife.com * // PHP mailer script created by versionthree * // * //********************************************************** // basic mail variables $to = "[email protected]"; //for multiple email addresses separate addresses with a comma $subject = "Website Comment"; $from = "This has just been sent from www.volumeforlife.com"; // other details $name_field = $_POST['thename']; $phone = $_POST['phone']; $email = $_POST['email']; $comment = $_POST['comment']; $date = date("D M d, Y H:i:s"); $message = "$date\n\nName: $thename\nPhone: $phone\nEmail: $email\n\nComment: $comment\n "; // Sends email and redirects if ($_POST['submit']=="true") { mail($to, $subject, $message, $from); header("Location: http://staging.volumeforlife.com/contact_success.html");} elseif ($_POST['submit']=="false") { header("Location: http://staging.volumeforlife.com/contact_deny.html");} ?> Link to comment https://forums.phpfreaks.com/topic/74111-mail-help/page/2/#findComment-374420 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.