Jump to content

Recommended Posts

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).

 

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!

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.