Chezshire Posted June 13, 2009 Share Posted June 13, 2009 I'm trying to make a simple little form that folks can fill out and send me and my friends a message. As we get a few messages, it gets confusing as to which message is which, so I'm trying to set it up so that people can title their messages to us (I think this is possible? Is it? Help?) This is my code which processes everything - and everything is working accept for the message (which i tried calling topic) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>XPG » Message Confirmed!</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head> <body> <h2>XPG » Message Sent!</h2> <?php $name = $_POST['namePlayer']; $topic = $_POST['nameTopic']; $other = $_POST['other']; $thread_PostID = $_POST['threadPostID']; $email = $_POST['email']; $name_char = $_POST['nameChar']; $to = 'BYRNE <mercurypagen@yahoo.com>, DITKO <chezshire@gmail.com>, LIEFIELD <babsbatgirlfan@yahoo.com>, MILLER <spasmolytica@yahoo.com>, Silvestri<rogue_kiss@yahoo.com>, SIENKIEWICZ<dashotton@btinternet.com>, SIMONSON <vismaior2000@yahoo.com>, WHEDON <scottebarr@optonline.net>, WOLFMAN <ghoogler@gmail.com>'; $subject = 'XPG » ' . $topic .' '; $msg = "FROM: $name \n \n" . "ISSUE, COMMENT OR CONCERN: $other \n \n" . "THREAD/POST: $thread_PostID \n \n" . "CHARACTER(S): $name_char \n \n"; mail($to, $subject, $msg, 'From:' . $email); echo 'Thank you for contacting us ' . $name . ' regarding ' . $subject . '. <br /> We will discuss this subject and try to have one of XPG’s Staff member contact you regarding this issue within 24 hours. If you have sent a notice that you will be away, this will be done ASAP and you have up to two weeks excused abscence.<br /> Thank you for your patience and understanding while you wait for us to get back to you. <br /> <br />'; ?> <p align=center><a href=www.xpg.us/messages.php>RETURN TO XPG</a></p> </body> </html> Any help is appreciated. Thank you (and no I don't know what I'm doing, but I am learning). Quote Link to comment https://forums.phpfreaks.com/topic/162014-solved-email-subject-line-getting-lost-help-please/ Share on other sites More sharing options...
Maq Posted June 13, 2009 Share Posted June 13, 2009 Looks fine. Have you echoed '$topic' to see if the value is being passed properly? Does the "Thank you for contacting us..." print out? Quote Link to comment https://forums.phpfreaks.com/topic/162014-solved-email-subject-line-getting-lost-help-please/#findComment-854886 Share on other sites More sharing options...
Chezshire Posted June 13, 2009 Author Share Posted June 13, 2009 Thank you so so so much Maq, Reading your question helped me to see my error which was on line #29 where i had typed '. $subject .' but should have typed '. $topic .' Thank you very much, I know what i've done is very minor and pales compared to what most people on here have done, but for me this is a huge step forward. Thank you very much for taking a look at this and giving me some help. Thank you! Quote Link to comment https://forums.phpfreaks.com/topic/162014-solved-email-subject-line-getting-lost-help-please/#findComment-854894 Share on other sites More sharing options...
Maq Posted June 13, 2009 Share Posted June 13, 2009 Sure, that's why we're here. This is a basic debugging technique that you should get used to. For more, see here - http://www.ibm.com/developerworks/library/os-debug/. It was written in '05 but most of the information still holds true. Good luck. Quote Link to comment https://forums.phpfreaks.com/topic/162014-solved-email-subject-line-getting-lost-help-please/#findComment-854962 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.