darkfreaks Posted April 17, 2008 Share Posted April 17, 2008 This Should work: <?php if (empty($email) ||empty($name)||empty($phone)||!isset($phone)||!isset($name)||!isset($email)||!isset($name)||!isset($phone)||!isset($email)) { header( "Location: error.html" ); exit; } else if(!empty($name)||!empty($email)||!empty($phone)||isset($name)||isset($phone)||isset($email)) { //mail ( string $to , string $subject , string $message [, string $additional_headers [, string $additional_parameters ]] ) $admin = '[email protected]' ; $name = stripslashes($_POST['name']) ; $message = stripslashes($_POST['message']) ; $email = stripslashes($_POST['email']) ; $phone = stripslashes($_POST['phone']) ; mail( $admin, "Feedback: $name", "Name: $name\nPhone: $phone\nEmail: $email\n\n$message", "From: $name <$email>" ); $subject = 'Online Inquiry'; $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.' ; mail( $email, $subject, $replymsg , "From: $admin" ); header( "Location: thankyou.html" ); exit; } ?> ps= mark topic solved Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519234 Share on other sites More sharing options...
binarygirl Posted April 17, 2008 Author Share Posted April 17, 2008 hrm.. another question from the pain in the Arse rookie... how do I make this line work $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.\n\nwww.mywebsite.com' ; so it displays like this Thank you for your email inquiry. One of our staff will respond shortly. www.mywebsite.com instead of llike this: $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.\nwww.mywebsite.com Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519235 Share on other sites More sharing options...
binarygirl Posted April 17, 2008 Author Share Posted April 17, 2008 oops... i mean the responding email said: Thank you for your email inquiry. One of our staff will respond shortly.\nwww.mywebsite.com how do I get that line break in there? Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519236 Share on other sites More sharing options...
darkfreaks Posted April 17, 2008 Share Posted April 17, 2008 $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.<br> www.mywebsite.com' ; Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519238 Share on other sites More sharing options...
binarygirl Posted April 17, 2008 Author Share Posted April 17, 2008 aww.. just saw your post.. moon beat ya too it - thanks DFs... $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.\nwww.mywebsite.com' ; I thought /n or \n would give me a line break so it would read: Thank you for your email inquiry. One of our staff will respond shortly. www.mywebsite.com Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519239 Share on other sites More sharing options...
darkfreaks Posted April 17, 2008 Share Posted April 17, 2008 if topic solved clicked solve Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519240 Share on other sites More sharing options...
binarygirl Posted April 17, 2008 Author Share Posted April 17, 2008 aww.. but I am still trying to figure out how to print Thank you for your email inquiry. One of our staff will respond shortly. www.mywebsite.com $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.\nwww.mywebsite.com' ; /n or \n doesn't work. prints it as one string... Thank you for your email inquiry. One of our staff will respond shortly. www.mywebsite.com Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519241 Share on other sites More sharing options...
darkfreaks Posted April 17, 2008 Share Posted April 17, 2008 <?php $replymsg = 'Thank you for your email inquiry. One of our staff will respond shortly.\nwww.mywebsite.com' ; n12br($replymsg); ?> Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519244 Share on other sites More sharing options...
binarygirl Posted April 17, 2008 Author Share Posted April 17, 2008 thank you three.. for all of your help ... Wish I knew this stuff better. You're rock stars. Thanks again bg Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519248 Share on other sites More sharing options...
darkfreaks Posted April 17, 2008 Share Posted April 17, 2008 no problem solved now please Link to comment https://forums.phpfreaks.com/topic/101500-solved-super-easy-question-please-help/page/2/#findComment-519249 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.