Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- require_once('php/simple-php-captcha/simple-php-captcha.php');
- require_once('php/php-mailer/PHPMailerAutoload.php');
- // Step 1 - Enter your email address below.
- $email = 'jane.manfield@corporatesonline.com';
- // If the e-mail is not working, change the debug option to 2 | $debug = 2;
- $debug = 2;
- if(isset($_POST['emailSent'])) {
- $subject .= $field['text']."SAL Member Registration ";
- // Step 2 - If you don't want a "captcha" verification, remove that IF.
- if (strtolower($_POST['captcha']) == strtolower($_SESSION['captcha']['code'])) {
- // Step 3 - Configure the fields list that you want to receive on the email.
- $fields = array(
- 0 => array(
- 'text' => 'Name',
- 'val' => $_POST['name']
- ),
- 1 => array(
- 'text' => 'Email address',
- 'val' => $_POST['email']
- ),
- 2 => array(
- 'text' => 'Type of Membership',
- 'val' => implode($_POST['checkboxes'], ", ")
- ),
- );
- $message = '';
- foreach($fields as $field) {
- $message .= $field['text'].": " . htmlspecialchars($field['val'], ENT_QUOTES) . "<br>\n";
- }
- $mail = new PHPMailer(true);
- try {
- $mail->SMTPDebug = $debug; // Debug Mode
- // Step 3 (Optional) - If you don't receive the email, try to configure the parameters below:
- //$mail->IsSMTP(); // Set mailer to use SMTP
- //$mail->Host = 'mail.yourserver.com'; // Specify main and backup server
- //$mail->SMTPAuth = true; // Enable SMTP authentication
- //$mail->Username = 'user@example.com'; // SMTP username
- //$mail->Password = 'secret'; // SMTP password
- //$mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted
- //$mail->Port = 587; // TCP port to connect to
- $mail->AddAddress($email); // Add a recipient
- //$mail->AddAddress('person2@domain.com', 'Person 2'); // Add another recipient
- //$mail->AddCC('person3@domain.com', 'Person 3'); // Add a "Cc" address.
- //$mail->AddBCC('person4@domain.com', 'Person 4'); // Add a "Bcc" address.
- $mail->SetFrom($email, $_POST['name']);
- $mail->AddReplyTo($_POST['email'], $_POST['name']);
- $mail->IsHTML(true); // Set email format to HTML
- $mail->CharSet = 'UTF-8';
- $mail->Subject = $subject;
- $mail->Body = $message;
- // Step 4 - If you don't want to attach any files, remove that code below
- if (isset($_FILES['attachment']) && $_FILES['attachment']['error'] == UPLOAD_ERR_OK) {
- $mail->AddAttachment($_FILES['attachment']['tmp_name'], $_FILES['attachment']['name']);
- }
- $mail->Send();
- $arrResult = array ('response'=>'success');
- } catch (phpmailerException $e) {
- $arrResult = array ('response'=>'error','errorMessage'=>$e->errorMessage());
- } catch (Exception $e) {
- $arrResult = array ('response'=>'error','errorMessage'=>$e->getMessage());
- }
- } else {
- $arrResult = array ('response'=>'captchaError');
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <!-- Basic -->
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>application for Membership of The Sugar Association of London </title>
- <meta name="keywords" content="Refined Sugar Association Membership, RSA Membership, Refined Sugar Association Registration, RSA Member Registration" />
- <meta name="description" content="Membership Registration for The Refined Sugar Association">
- <meta name="author" content="Corporates Online">
- <!-- Favicon -->
- <link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
- <link rel="apple-touch-icon" href="img/apple-touch-icon.png">
- <!-- Mobile Metas -->
- <meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
- <!-- Web Fonts -->
- <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800%7CShadows+Into+Light" rel="stylesheet" type="text/css">
- <!-- Vendor CSS -->
- <link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
- <link rel="stylesheet" href="vendor/animate/animate.min.css">
- <link rel="stylesheet" href="vendor/simple-line-icons/css/simple-line-icons.min.css">
- <link rel="stylesheet" href="vendor/owl.carousel/assets/owl.carousel.min.css">
- <link rel="stylesheet" href="vendor/owl.carousel/assets/owl.theme.default.min.css">
- <link rel="stylesheet" href="vendor/magnific-popup/magnific-popup.min.css">
- <!-- Theme CSS -->
- <link rel="stylesheet" href="css/theme.css">
- <link rel="stylesheet" href="css/theme-elements.css">
- <link rel="stylesheet" href="css/theme-blog.css">
- <link rel="stylesheet" href="css/theme-shop.css">
- <!-- Current Page CSS -->
- <link rel="stylesheet" href="vendor/rs-plugin/css/settings.css">
- <link rel="stylesheet" href="vendor/rs-plugin/css/layers.css">
- <link rel="stylesheet" href="vendor/rs-plugin/css/navigation.css">
- <!-- Skin CSS -->
- <link rel="stylesheet" href="css/skins/custom-skin.css">
- <!-- Theme Custom CSS -->
- <link rel="stylesheet" href="css/custom-sal.css">
- <!-- Head Libs -->
- <script src="vendor/modernizr/modernizr.min.js"></script>
- </head>
- <body>
- <div class="body">
- <header id="header" class="header-no-border-bottom" data-plugin-options="{'stickyEnabled': true, 'stickyEnableOnBoxed': true, 'stickyEnableOnMobile': false, 'stickyStartAt': 148, 'stickySetTop': '-148px', 'stickyChangeLogo': false}">
- <div class="header-body">
- <div class="header-top header-top-style-2">
- <div class="container">
- <p class="pull-right">
- <i class="fa fa-map-marker"></i> The Sugar Association of London & The Refined Sugar Association, 154 Bishopsgate, London EC2M 4LN | <i class="fa fa-phone"></i> +44 (0) 20 7377 2113 </p>
- </p>
- </div>
- </div>
- <div class="header-container container">
- <div class="header-row">
- <div class="header-column">
- <div class="header-logo pull-left">
- <a href="sal.php">
- <img alt="Sugar Association of London" width="220" height="80" data-sticky-width="110" data-sticky-height="40" data-sticky-top="33" src="img/SAL_RGB_80.gif"></a>
- <a href="documents/SAL effective 1st May 2017 Complete.pdf" target="_blank"> <button type="button" class="btn btn-3d btn-primary mr-xs mb-sm">SAL Rules 2017</button></a>
- </div>
- <div class="header-logo pull-right">
- <a href="documents/RSA Effective 1st July 2017 Complete.pdf" target="_blank"> <button type="button" class="btn btn-3d btn-secondary mr-xs mb-sm">RSA Rules 2017</button></a>
- <a href="rsa.php">
- <img alt="Refined Sugar Association of London" width="220" height="80" data-sticky-width="110" data-sticky-height="40" data-sticky-top="33" src="img/RSA_RGB_80.gif"></a>
- </div>
- </div>
- </div>
- </div>
- <div class="header-container header-nav header-nav-bar header-nav-bar-primary">
- <div class="container">
- <button class="btn header-btn-collapse-nav" data-toggle="collapse" data-target=".header-nav-main">
- <i class="fa fa-bars"></i>
- </button>
- <div class="header-nav-main header-nav-main-light header-nav-main-effect-1 header-nav-main-sub-effect-1 collapse">
- <nav>
- <ul class="nav nav-pills" id="mainNav">
- <li class="dropdown">
- <a class="dropdown-toggle" href="index.php">
- Home
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="sal.php">
- Sugar Association of London
- </a>
- </li>
- <li>
- <a href="rsa.php">
- Refined Sugar Association
- </a>
- </li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" href="#">
- Rules
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="sal-rules.php">
- Rules - Sugar Association of London
- </a>
- </li>
- <li>
- <a href="rsa-rules.php">
- Rules - Refined Sugar Association
- </a>
- </li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" href="#">
- Application for Membership
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="sal-member-registration.php">
- Register - Sugar Association of London
- </a>
- </li>
- <li>
- <a href="rsa-member-registration.php">
- Register - Refined Sugar Association
- </a>
- </li>
- </ul>
- </li>
- <li class="dropdown">
- <a class="dropdown-toggle" href="#">
- Events
- </a>
- <ul class="dropdown-menu">
- <li>
- <a href="events.php#forthcoming">
- Forthcoming Events
- </a>
- </li>
- <li>
- <a href="events.php#past">
- Past Events
- </a>
- </li>
- <li>
- <a href="events.php#gallery">
- Gallery
- </a>
- </li>
- </ul>
- </li>
- <li>
- <a href="contact.php">
- Contact
- </a>
- </li>
- </ul>
- </nav>
- </div>
- </div>
- </div>
- </div>
- </header>
- <div role="main" class="main">
- <section class="page-header">
- <div class="container">
- <div class="row">
- <div class="col-md-12">
- <ul class="breadcrumb">
- <li><a href="#">Home</a></li>
- <li class="active">Application for Membership</li>
- </ul>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <h1>Application for Membership</h1>
- </div>
- </div>
- </div>
- </section>
- <div class="container">
- <img src="img/sal-pages-400.jpg" width="1170" height="400" alt="Sugar Association of London Member Registration" />
- <p> </p>
- <div class="row">
- <div class="col-md-9">
- <div class="offset-anchor" id="contact-sent"></div>
- <h2 class="mb-sm mt-sm">Application for <strong>Membership</strong></h2>
- <p>“To apply for Full or Affiliate membership please download and complete the Application form. All Applications must be supported by two existing Full Members who must complete the Proposer and Seconder forms. The completed Application, Proposer and Seconder forms should be sent to the Secretary along with your last audited Accounts.”</p>
- <p>The Application, Proposer and Seconder forms can be reached by the link below.</p>
- <div class="row">
- <div class="col-md-12">
- <p><a href="documents/SAL Full Membership Application Forms.pdf" target="_blank"><strong>SAL Full Member Application Form</strong></a> | <a href="documents/SAL Affilliate Membershop Application forms.pdf" target="_blank"><strong>SAL Affiliate Member Application Form</strong></a></p>
- </div>
- </div>
- <form id="contactFormAdvanced" action="sal-member-registration.php#contact-sent" method="POST" enctype="multipart/form-data">
- <input type="hidden" value="true" name="emailSent" id="emailSent">
- <div class="row">
- <div class="form-group">
- <div class="col-md-4">
- <label>Your name *</label>
- <input type="text" value="" data-msg-required="Please enter your name." maxlength="100" class="form-control" name="name" id="name" required>
- </div>
- <div class="col-md-4">
- <label>Your email address *</label>
- <input type="email" value="" data-msg-required="Please enter your email address." data-msg-email="Please enter a valid email address." maxlength="100" class="form-control" name="email" id="email" required>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="form-group">
- <div class="col-md-12">
- <label>Membership</label>
- <div class="checkbox-group" data-msg-required="Please select at least one option.">
- <label class="checkbox-inline">
- <input type="checkbox" name="checkboxes[]" id="full" value="FULL"> Full
- </label>
- <label class="checkbox-inline">
- <input type="checkbox" name="checkboxes[]" id="affiliate" value="AFFILIATE"> Affiliate
- </label>
- </div>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="form-group">
- <div class="col-md-4">
- <label>Resgistration Form *</label>
- <input type="file" name="attachment" id="attachment">
- </div>
- <div class="form-group">
- <div class="col-md-4">
- <label>Company Accounts *</label>
- <input type="file" name="attachment" id="attachment">
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-6">
- <label>Human Verification *</label>
- </div>
- </div>
- <div class="row">
- <div class="form-group">
- <div class="col-md-4">
- <div class="captcha form-control">
- <div class="captcha-image">
- <img id="captcha-image" src="php/simple-php-captcha/simple-php-captcha.php//development/sugarassociation_rebrand/php/simple-php-captcha/simple-php-captcha.php?_CAPTCHA&t=0.79959800+1502726686" alt="CAPTCHA code"> </div>
- <div class="captcha-refresh">
- <a href="#" id="refreshCaptcha"><i class="fa fa-refresh"></i></a>
- </div>
- </div>
- </div>
- <div class="col-md-4">
- <input type="text" value="" maxlength="6" data-msg-captcha="Wrong verification code." data-msg-required="Please enter the verification code." placeholder="Type the verification code." class="form-control input-lg captcha-input" name="captcha" id="captcha" required>
- </div>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <hr>
- </div>
- </div>
- <div class="row">
- <div class="col-md-12">
- <input type="submit" id="contactFormSubmit" value="Send Application" class="btn btn-primary btn-lg " data-loading-text="Loading...">
- </div>
- </div>
- </form>
- </div>
- </div>
- <div class="col-md-3">
- <aside class="sidebar">
- <h4 class="heading-primary">SAL</h4>
- <ul class="nav nav-list mb-xlg">
- <li><a href="index.php">Home</a></li>
- <li><a href="sal.php">SAL Introduction</a></li>
- <li>
- <a href="sal-rules.php">Rules</a>
- <ul>
- <li><a href="sal-rules.php#current">Current</a></li>
- <li><a href="sal-rules.php#previous">Previous</a></li>
- </ul>
- </li>
- <li class="active"><a href="sal-member-registration.php">Application for Membership</a></li>
- <li><a href="events.php">Events</a>
- <ul>
- <li><a href="events.php#forthcoming">Forthcoming</a></li>
- <li><a href="events.php#past">Past</a></li>
- <li><a href="events.php#gallery">Gallery</a></li>
- </ul>
- </li>
- <li><a href="contact.php">Contact</a></li>
- </ul>
- </aside>
- </div>
- </div>
- </div>
- <footer id="footer" class="light">
- <div class="container">
- <div class="row">
- <div class="col-md-3"><img src="img/SAL_RGB_80.gif" width="220" height="80" alt="Sugar Association of London"></div>
- <div class="col-md-6">
- <div class="contact-details">
- <h4>Contact Us</h4>
- <ul class="contact">
- <li><p><i class="fa fa-map-marker"></i> <strong>Address:</strong> The Sugar Association of London, 154 Bishopsgate, London EC2M 4LN</p></li>
- <li><p><i class="fa fa-phone"></i> <strong>Phone:</strong>+44 (0) 20 7377 2113</p></li>
- <li><p><i class="fa fa-envelope"></i> <strong>Email:</strong> <a href="mailto:durhamn@sugar-assoc.co.uk">durhamn@sugar-assoc.co.uk</a></p></li>
- </ul>
- </div>
- </div>
- <div class="col-md-3">
- <img src="img/RSA_RGB_80.gif" width="220" height="80" alt="Refined Sugar Association">
- </div>
- </div>
- </div>
- <div class="footer-copyright">
- <div class="container">
- <div class="row">
- <div class="col-md-6">
- <p>© The Sugar Association of London Copyright 2017. All Rights Reserved.</p>
- </div>
- <div class="col-md-4">
- <p>Website design by <a href="http://www.corporatesonline.com">Corporates Online</a></p>
- </div>
- <div class="col-md-2">
- <nav id="sub-menu">
- <ul>
- <li><a href="#">Sitemap</a></li>
- <li><a href="#">Contact</a></li>
- </ul>
- </nav>
- </div>
- </div>
- </div>
- </div>
- </footer>
- </div>
- <!-- Vendor -->
- <!--[if lt IE 9]>
- <script src="//code.jquery.com/jquery-1.11.3.min.js"></script>
- <![endif]-->
- <script src="vendor/jquery/jquery.min.js"></script>
- <script src="vendor/jquery.appear/jquery.appear.min.js"></script>
- <script src="vendor/jquery.easing/jquery.easing.min.js"></script>
- <script src="vendor/jquery-cookie/jquery-cookie.min.js"></script>
- <script src="vendor/bootstrap/js/bootstrap.min.js"></script>
- <script src="vendor/common/common.min.js"></script>
- <script src="vendor/jquery.validation/jquery.validation.min.js"></script>
- <script src="vendor/jquery.easy-pie-chart/jquery.easy-pie-chart.min.js"></script>
- <script src="vendor/jquery.gmap/jquery.gmap.min.js"></script>
- <script src="vendor/jquery.lazyload/jquery.lazyload.min.js"></script>
- <script src="vendor/isotope/jquery.isotope.min.js"></script>
- <script src="vendor/owl.carousel/owl.carousel.min.js"></script>
- <script src="vendor/magnific-popup/jquery.magnific-popup.min.js"></script>
- <script src="vendor/vide/vide.min.js"></script>
- <!-- Theme Base, Components and Settings -->
- <script src="js/theme.js"></script>
- <!-- Specific Page Vendor and Views -->
- <script src="js/views/view.contact.js"></script>
- <!-- Theme Custom -->
- <script src="js/custom.js"></script>
- <!-- Theme Initialization Files -->
- <script src="js/theme.init.js"></script>
- <!-- Google Analytics: Change UA-XXXXX-X to be your site's ID. Go to http://www.google.com/analytics/ for more information.
- <script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-12345678-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement