deepakram Posted May 18, 2009 Share Posted May 18, 2009 here is my code: <?php $Name = $_POST['name'] ; $email = $_POST['email'] ; $message = $_POST['message'] ; $rating1 = $_POST['rating1']; $rating1comments = $_POST['rating1comments']; $message1="You have new feedback from".$email."xxxxx".$message."The service is".$rating1."comments Given as : ".$rating1comments.""; mail( "[email protected]", "Feedback Form...", $message1, "From: $email" ); echo'Thanks You for your feedback...<a href="feedback.php" title="Back to Feedback form...">Back</a>' ?> problem: this code is perfectly workingwhile sending the feedback to email account but i want all the details of the inserted data to come by line by line instead all in one paragraph. any help would be appriciated thanks in advance deepak Link to comment https://forums.phpfreaks.com/topic/158588-sending-feedback-with-line-by-line/ Share on other sites More sharing options...
MatthewJ Posted May 18, 2009 Share Posted May 18, 2009 Just separate the lines with \n Example: "This would be on line one\n\n This would be on line 2\n\n This would be on line three" Link to comment https://forums.phpfreaks.com/topic/158588-sending-feedback-with-line-by-line/#findComment-836415 Share on other sites More sharing options...
deepakram Posted May 18, 2009 Author Share Posted May 18, 2009 thank you so much...i dint expected such fast response..this site rocks Link to comment https://forums.phpfreaks.com/topic/158588-sending-feedback-with-line-by-line/#findComment-836434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.