Jump to content

Comments2 Box Results Not Found in E-mail


collbrankid

Recommended Posts

One more question guys. Everyone has been really helpful. My comments2 box results are not showing up in my e-mail. What's the deal with this?

 

Thanks again in advance.

 

Feedback.php:

 

<td colspan="2">

What would you like to get out of the New Orleans Pilot Trip?<br />

<textarea rows="10" cols="53" name="comments"></textarea>

</td>

</tr>

<td colspan="2">

Brief description of your previous volunteer experience:<br />

<textarea rows="10" cols="53" name="comments2"></textarea>

$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;

$name = $_POST['name'] ;

$email = $_POST['email'] ;

$college = $_POST['college'] ;

$major = $_POST['major'] ;

$classyear = $_POST['classyear'] ;

$phone = $_POST['phone'] ;

$find = $_POST['find'] ;

$comments = $_POST['comments'] ;

$comments2 = $_POST['comments2'] ;

 

 

mail( "$sendto", "Feedback From Site",

"Name: $name\n\n$message",

"From: $name" );

 

 

$http_referrer = getenv( "HTTP_REFERER" );

 

if (!isset($_POST['email'])) {

header( "Location: $formurl" );

exit ;

}

if (empty($name) || empty($email) || empty($comments)) {

  header( "Location: $errorurl" );

  exit ;

}

if ( ereg( "[\r\n]", $name ) || ereg( "[\r\n]", $email ) ) {

header( "Location: $errorurl" );

exit ;

}

 

if (get_magic_quotes_gpc()) {

$comments = stripslashes( $comments );

}

 

$messageproper =

 

"This message was sent from:\n" .

"$http_referrer\n" .

"------------------------------------------------------------\n" .

"Name of sender: $name\n" .

"Email of sender: $email\n" .

"College/University: $college\n".

"Major: $major\n" .

"Phone: $phone\n" .

"Classyear: {$_POST['classyear']}\n" .

    "Find: {$_POST['find']}" .

"------------------------- How did you hear about us? -------------------------\n\n" .

$comments .

"\n\n------------------------------------------------------------\n" ;

"------------------------- Previous Volunteer Experience -------------------------\n\n" .

$comment2 .

"\n\n------------------------------------------------------------\n" ;

 

mail($mailto, $subject, $messageproper,

"From: \"$name\" <$email>" . $headersep . "Reply-To: \"$name\" <$email>" . $headersep . "X-Mailer: chfeedback.php 2.07" );

header( "Location: $thankyouurl" );

exit ;

 

?>

 

Registration.html:

 

  <form action="feedback.php" method="post">

     

<table border="0" cellpadding="3" cellspacing="1" summary="feedback form">

 

<tr><td>Name:</td><td><input type="text" name="name" size="25" /></td></tr>

<tr><td>Email address:</td><td><input type="text" name="email" size="25" /></td></tr>

<tr><td>College/University:</td><td><input type="text" name="college" size="25" /></td></tr>

<tr><td>Major:</td><td><input type="text" name="major" size="25" /></td></tr>

<tr><td>Phone:</td><td><input type="text" name="phone" size="25" /></td></tr>

 

<tr><td></td><td></td></tr>

 

<td> Class Year: <select name="classyear">

<option value="Freshman">Freshman</option>

<option value="Sophomore">Sophomore</option>

<option value="Junior">Junior</option>

<option value="Senior">Senior</option></select><br><br>

 

<td> How did you hear about us?<select name="find">

<option value="Word of Mouth">Word of Mouth</option>

<option value="Browsing the Internet">Browsing the Internet</option>

<option value="Newspaper/Magazine">Newspaper/Magazine</option>

<option value="Other">Other</option></select><br><br>

 

 

<tr><td></td><td></td></tr>

 

<td colspan="2">

What would you like to get out of the New Orleans Pilot Trip?<br />

<textarea rows="10" cols="53" name="comments"></textarea>

</td>

</tr>

<td colspan="2">

Brief description of your previous volunteer experience:<br />

<textarea rows="10" cols="53" name="comments2"></textarea>

</td>

</tr>

<tr><td></td><td></td></tr>

<tr><td></td><td></td></tr>

 

<tr>

<td align="center" colspan="2">

<input type="submit" value="Register Now" /><br />

</td>

</tr>

</table>

</form>

Link to comment
Share on other sites

because you left the concatenation operator off the line a couple above it.

 

   "\n\n------------------------------------------------------------\n". << that's the problem
   "------------------------- Previous Volunteer Experience -------------------------\n\n" .

Link to comment
Share on other sites

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.