Forum Moderators: coopster
echo "<p>Thank you,$_POST[Registrant],for your registration!</p><p>You will receive confirmation of your registration details in the mail.";
$msg .= "InstitutionName: $_POST[InstitutionName]\n";
$msg .= "Address: $_POST[Address]\n";
$msg .= "City: $_POST[City]\n";
$msg .= "State: $_POST[State]\n";
$msg .= "Zip: $_POST[Zip]\n";
$msg .= "Registrant : $_POST[Registrant]\n";
$msg .= "Title: $_POST[Title]\n";
$msg .= "Telephone: $_POST[Telephone]\n";
$msg .= "Fax: $_POST[Fax]\n";
$msg .= "Email: $_POST[Email]\n";
$fairs = (!empty($_POST['CCfair'])? implode(',',$_POST['CCfair'])."\n" : '');
$msg .= 'CCfair: '.$fairs.'\n';
$recipient = "";
$subject = "";
$mailheaders = "from: $_POST[Registrant]\n";
$mailheaders = "Reply-to: $_POST[Email]\n";
mail($recipient, $subject, $msg, $mailheaders);
<title>Untitled Document</title>
<link href="ccnhcfstyle.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<?php
$msg .= "InstitutionName: $_POST[InstitutionName]\n";
$msg .= "Address: $_POST[Address]\n";
$msg .= "City: $_POST[City]\n";
$msg .= "State: $_POST[State]\n";
$msg .= "Zip: $_POST[Zip]\n";
$msg .= "Registrant : $_POST[Registrant]\n";
$msg .= "Title: $_POST[Title]\n";
$msg .= "Telephone: $_POST[Telephone]\n";
$msg .= "Fax: $_POST[Fax]\n";
$msg .= "Email: $_POST[Email]\n";
$fairs = (!empty($_POST['CCfair'])? implode(',',$_POST['CCfair'])."\n" : '');
$msg .= 'CCfair: '.$fairs.'\n';
$recipient = "";
$subject = "CC Fairs form submission results";
$mailheaders = "from: $_POST[Registrant]\n";
$mailheaders = "Reply-to: $_POST[Email]\n";
mail($recipient, $subject, $msg, $mailheaders);
?>
<div id="wrap">
<div id="wrap-inner">
<div id="header">
<img src="whitecap.gif" alt="logo" width="80" height="80" /><h1>collegefair.info by <br />
CAREER COUNCIL & NATIONAL HISPANIC COLLEGE FAIRS</h1>
<p id="topnav"><a href="file:///Macintosh HD/webroot/collegefair.info">home</a> ¦ <a href="#">contact</a> ¦ <a href="#">site map</a></p>
</div>
<div id="main-body">
<div id="sidebar">
<div id="sidebarDiv">
<h3>EXPLORE OUR SITE </h3>
<p><a href="AboutCC/NHCF.html">About CC/NHCF</a></p>
<p><a href="CCRegistration.html">Career Council College Fairs</a></p>
<p><a href="NHCFRegistration.html">National Hispanic College Fairs</a></p>
<p><a href="Locations.html">Locations</a></p>
<p><span class="style14">Each day, Over 2,000 College-Bound High School Seniors will be there.....<br />
WILL YOU? </span></p>
<h4> </h4>
</div>
</div>
<div id="content">
<div id="contentDiv">
<p align="center">Thank you,<?php echo $_POST['Registrant'];?>, for your registration. <br />
<?php
$msg .= "InstitutionName: $_POST[InstitutionName]\n";
$msg .= "Address: $_POST[Address]\n";
$msg .= "City: $_POST[City]\n";
$msg .= "State: $_POST[State]\n";
$msg .= "Zip: $_POST[Zip]\n";
$msg .= "Registrant : $_POST[Registrant]\n";
$msg .= "Title: $_POST[Title]\n";
$msg .= "Telephone: $_POST[Telephone]\n";
$msg .= "Fax: $_POST[Fax]\n";
$msg .= "Email: $_POST[Email]\n";
$fairs = (!empty($_POST['CCfair'])? implode(',',$_POST['CCfair'])."\n" : '');
$msg .= 'CCfair: '.$fairs.'\n';
$recipient = "chriscanning@optonline.net";
$subject = "Career Council College Fairs form submission results";
$mailheaders = "from: $_POST[Registrant]\n";
$mailheaders = "Reply-to: $_POST[Email]\n";
mail($recipient, $subject, $msg, $mailheaders);
?>
Right now, the results will print something like this in the email (which I hope to restore receipt of!) that is generated:
CCFair: CC_AtlantaGA, CC_NewYorkNY, CC_HollywoodFL,CC_HoustonTX,CC_AkronOH,
I think it would be more legible for those following up on this input if it printed like:
CC_AtlantaGA
CC_New York,
CC_HollywoodFL
CC_HoustonTX
CC_AkronOH
because registrants may sign up for as many as 22 events.
Thank you!