Hey folks,
Anyone know how to take the code below and make sure that all the stuff that gets sent to the email wordwraps at 400 pixels? Please HELP!
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
session_start();
if( ($_SESSION['security_code']==$_POST['security_code']) && (!empty($_POST['security_code'])) ) {
$message = wordwrap($message, 70);
mail("rbeale@bealeinc.com,iam1az@cox.net","Membership Application","Form data:
First Name: " . $_POST['field_1'] . "
Last Name: " . $_POST['field_2'] . "
Your Email Address: " . $_POST['field_3'] . "
Street Address: " . $_POST['field_4'] . "
City: " . $_POST['field_5'] . "
State: " . $_POST['field_6'] . "
Zip Code: " . $_POST['field_7'] . "
Home Phone: " . $_POST['field_8'] . "
Work Phone: " . $_POST['field_9'] . "
Cell Phone: " . $_POST['field_10'] . "
Name of Emergency Contact: " . $_POST['field_11'] . "
Phone of Emergency Contact: " . $_POST['field_12'] . "
Relationship To You: " . $_POST['field_13'] . "
Brief History of Yourself: " . $_POST['field_14'] . "
Make of Motorcycle You Own: " . $_POST['field_15'] . "
Model of Motorcycle you Own: " . $_POST['field_16'] . "
Year of Motorcycle You Own: " . $_POST['field_17'] . "
Years of Riding Experience: " . $_POST['field_18'] . "
State Reason For Joining: " . $_POST['field_19'] . "
");
include("confirm.html");
}
else {
echo "Invalid Captcha String.";
}
?>
Thanks
Benjamin