JezK
Edit File: success.php
<?php include("header.php"); if(!isset($_SESSION['bcFormUserID'])) { echo "<script>location.replace('page1.php');</script>"; } if(isset($_SESSION['bcFormUserID'])) { $headers = "From: Nabfins<noreply@nabfins.com>" . "\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $subject="BC: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;">BC-BF APPLICATION SUBMISSION</div></div> <div style="line-height: 26px;clear:both;padding:10px;">Dear <span style="color:#6a0000;font-weight:bold;">'.ucwords($applicationName).'</span>, <p style="padding:0px 0px;">Greetings from NABFINS !!!</p> <p style="padding:0px 0px;"><b>B&DC / B&DF Application</b></p> <p style="padding:0px 0px;">Thanks for filling the application form and kindly note down your registration number <strong>'.$formSubmissionID.'.</strong></p> <p style="padding:0px 0px;">Please take a print out of the application and submit along with the signature and seal of the authorised signatories. A copy of notarised affidavit for no criminal proceedings of the organisation and authorised signatories should be submitted in original.</p> <p style="padding:0px 0px;">A confirmation mail will be delivered to you once we accepts the registration. The above documents are required to be submitted to NABFINS HO in the following address.</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>'; //echo $message;exit; mail($email,$subject,$message,$headers); //mail('rampanesh@krify.net',$subject,$message,$headers); mail('bdccell@nabfins.org',$subject,$message,$headers); $_SESSION['bcPreviewUserID'] = $_SESSION['bcFormUserID']; unset($_SESSION['bcFormUserID']); echo "<script>location.replace('application.php');</script>"; } ?> <div style="clear:both;"></div> <center> <h2 style="padding-top:10px;"> Data saved Successfully </h2> <h3> Form SubmissionID: <?php echo $formSubmissionID; ?></h3> <span>* Please save this details. *</span> <p><a href="application.php"><input type="button" value="Preview" class="btn btn-cs"></a></p> </center>