I'm trying to add a word wrap function to this script.
This is just a "dummy" practice script.
For some reason it's not working.
This is what I have.
As of this point the text in the comment area goes to the end of the browser window.Code:$address = "test@test.com"; $subject = "New Form Details Entered!"; $message = "<b>Web Message:</b><br><br>"; $message .= "<b>First Name:</b> ".$_POST['firstName']."<br>"; $message .= "<b>Last Name:</b> ".$_POST['lastName']."<br>"; $message .= "<b>Email:</b> ".$_POST['Email']."<br>"; $message .= "<b>Phone Number:</b> ".$_POST['phoneNumber']."<br><br>"; $message .= "<b>Comments/Message:</b><br> ".$_POST['comments']."<br>"; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$_POST['firstName']." ".$_POST['lastName'].'<test@test.com>' . "\r\n"; $message = wordwrap($message, 70); mail($address, $subject, $message, $headers); ?>
Any ideas how I can fix that?
IC






Bookmarks