Skip to content

Commit

Permalink
Minor code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
pinceladasdaweb committed Nov 20, 2016
1 parent 6587aa4 commit 85c16ea
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions contact-form/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
$mail->setTo($config->get('emails.to'));
$mail->setFrom($config->get('emails.from'));
$mail->setSender($name);
$mail->setSenderEmail($email);
$mail->setSubject($config->get('subject.prefix') . ' ' . $subject);

$body = "
Expand Down Expand Up @@ -68,8 +69,10 @@
</head>
<body>
<div class="jumbotron">
<h1>Simple PHP Contact Form</h1>
<p>A Simple Contact Form developed in PHP with HTML5 Form validation. Has a fallback in jQuery for browsers that do not support HTML5 form validation.</p>
<div class="container">
<h1>Simple PHP Contact Form</h1>
<p>A Simple Contact Form developed in PHP with HTML5 Form validation. Has a fallback in <strike>jQuery</strike> pure JavaScript for browsers that do not support HTML5 form validation.</p>
</div>
</div>
<?php if(!empty($emailSent)): ?>
<div class="col-md-6 col-md-offset-3">
Expand Down Expand Up @@ -123,12 +126,9 @@
</div>
<?php endif; ?>

<!--[if lt IE 9]>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<![endif]-->
<!--[if gte IE 9]><!-->
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
<!--<![endif]-->
<script type="text/javascript" src="public/js/contact-form.js"></script>
<script type="text/javascript">
new ContactForm('#contact-form');
</script>
</body>
</html>

0 comments on commit 85c16ea

Please sign in to comment.