My host service is with GoDaddy.com, don't know if that has any bearing on my problem but suspecting it might. My goal is to provide the site visitor a registration form to complete, click submit and get a feed back page plus have the form emailed to the administrator. I first set up the coding where the visitor gets the feed back page which worked beautifully. Once I put the coding for the email to be sent then I get the error which says it lies in Line 13. I have read that these errors are not always accurate on where the error is located. So I put a space on line 13, upload the new page but still same error on same line. Your help is very much appreciated.
Code:
<?php $name = $_POST['name']; $phone = $_POST['phone']; $email = $_POST['email']; $guest = $_POST['guest']; $guestphone = $_POST['guestphone']; $guestclub = $_POST['guestclub']; $guestclubphone = $_POST['guestclubphone']; $cash = $_POST['cash']; $check = $_POST['check']; $chgtoclub = $_POST['chgtoclub']; $specialrequest = $_POST['specialrequest'] $message = "Registration form for Diamond Cup tournament. \n Name: $name \n Phone Number: $phone \n Email: $email \n Guest Name: $guest \n Guest Phone Number: $guestphone \n Guest Club: $guestclub \n Guest Club Phone: $guestclubphone \n Cash: $cash \n Check: $check \n Club Charge: $chgtoclub \n Special Request: $specialrequest"; abs( $from = "From: $email"; mail ('jkappler@sbcglobal.net', 'Diamond Cup', $message, $from); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Diamond Cup Submit Registration Confirmation</title> <link href="dc.css" rel="stylesheet" type="text/css"> <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script> <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css"> </head> <body class="oneColElsCtrHdr"> <div id="container"> <div id="header"> <img src="DC images/diamond _cup_logo_with_purple1.png" alt="Diamond Cup logo" width="200" height="219" class="oneColElsCtrHdr"> <div class="Logo">June 16th, 17th, and 18th, 2011<br> Rolling Hills Country Club<br> Arlington, TX <!-- end #header --> <div id="mainContent"> <h1> <p> </p> <p class="p">Thank you for submitting your registration form. <br> Once I have received your payment I will email you a confirmation of your completed enrollment. Happy Golfing!</p> <h1>The information you have submitted is:</h1> <p>Member Name: <?php echo $name; ?></p> <p>Phone Number: <?php echo $phone; ?></p> <p>Email: <?php echo $email; ?></p> <p>Guest Name: <?php echo $guest; ?></p> <p>Guest Phone Number: <?php echo $guestphone; ?></p> <p>Guest Club Affiliation for Handicap Info: <?php echo $guestclub; ?></p> <p>Guest Club Phone Number: <?php echo $guestclubphone; ?></p> <p>Payment Method</p> <p>Cash: <?php echo $cash; ?></p> <p>Check: <?php echo $check; ?></p> <p>Charge to RHCC member account: <?php echo $chgtoclub; ?></p> <p>Special request or needs: <?php echo $specialrequest; ?></p> <!-- end #mainContent --></div> <div id="footer"> <p>Rolling Hills Country Club - 401 East Lamar Boulevard, Arlington, TX 76011 <br> 817-274-1072 <br> Pro Shop 817-261-6221 </p> <!-- end #footer --></div> <!-- end #container --></div> </body> </html>
Comment