JezK
Edit File: success.php
<?php include("header.php"); if(!isset($_SESSION['userID'])) { echo "<script>location.replace('page1.php');</script>"; } if(isset($_SESSION['userID'])) { $headers = "From: Nabfins<donotreply@nabfins.com>" . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $subject="SLI:Online Registration"; $message = '<html> <head> </head> <body style="margin:0px;background: #eeeee0;font-family:Arial;"> <div style="text-align:center;background: #eeeee0;float: left;width: 100%;border-bottom: 1px solid #352f2f;"><img src="http://nabfins.org/wp-content/themes/rocketboard-v1-04/images/logo.png" alt="default-logo" style="float:left;padding: 8px 10px;"><div style="padding: 38px 0px;color:#6a0000;font-weight:bold;">SLI APPLICATION SUBMISSION</div></div> <div style="line-height: 26px;clear:both;padding:10px;">Dear <span style="color:#6a0000;font-weight:bold;">'.ucwords($sliName).'</span>,<p style="padding:0px 0px;">Thanks for filling the application online. Please take a print out of the application and submit to the nabfins head office address. A cofirmation mail will be delivered to you once Nabfins team accepts the registration. Please Note down your regisrtration number <strong>'.$formSubmissionID.'.</strong><p><strong>NABFINS Head office Address : </strong><br>#3072, 14th Cross,<br> K. R. Road,<br> Banashankari 2nd Stage,<br> Bengaluru - 560 070,<br> Karnataka, India<br> Telephone : + 91 80 26970500<br> Fax : + 91 80 26970504</div> </body> </html>'; mail($email,$subject,$message,$headers); mail('sainath@krify.com',$subject,$message,$headers); mail('sli@nabfins.org',$subject,$message,$headers); $_SESSION['sliPreviewUserID'] = $_SESSION['userID']; unset($_SESSION['userID']); $_SESSION['sliPreviewConstitution'] = $_SESSION['constitution']; unset($_SESSION['constitution']); echo "<script>location.replace('application.php');</script>"; } ?> <center> <h1> Data saved Successfully </h1> <h3> Submission ID: <?php echo $formSubmissionID; ?></h3> <span>* Please save this details. *</span> <p>Please click on the below preview button to print the application.</p> <p><a href="application.php"><input type="button" value="Preview" class="btn btn-primary"></a></p> </center>