Browse files

adding utils page

  • Loading branch information...
1 parent 800e4b2 commit d50a47fbefa916de10521949de526b04ff3d0a02 @p-m-p committed Aug 20, 2011
Showing with 0 additions and 59 deletions.
  1. +0 −26 inc/form_post.php
  2. +0 −33 mailBody.php
View
26 inc/form_post.php
@@ -1,26 +0,0 @@
-<?php
-
- require_once 'functions.php';
-
- if (!strlen($_POST['name']))
- $name_err = true;
- if (!strlen($_POST['email']))
- $email_err = true;
- if (!strlen($_POST['comment']))
- $comment_err = true;
-
- if (!isset($name_err) && !isset($email_err) && !isset($comment_err)) {
- require '../../tutorials/apps/mailer/Mailer.php';
- $mailer = new Mailer(
- $_POST['name']
- , $_POST['email']
- , 'phil@profilepicture.co.uk'
- , 'jNavigate form submission'
- , $_POST['comment']
- );
- if ($mailer->validate()) {
- $mailer->send();
- $form_sent = true;
- }
- else $email_err = true;
- }
View
33 mailBody.php
@@ -1,33 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-</head>
-<body style="font-family: Arial, sans-serif; font-size: 12px;">
- <table width="580px" cellspacing="0" cellpadding="10px" border="0" style="margin-left: auto; margin-right: auto; margin-bottom: 40px;">
- <tbody>
- <tr>
- <td align="right" style="border-bottom: solid 2px #CCCCCC;">
- <h1 style="font-size: 18px; color: #333333; margin-bottom: 4px; line-height: 18px;">
- New form submission from ProfilePicture
- </h1>
- <p style="font-size: 12px; color: #999999; margin-top: 0px;">
- <?php echo date('l d F, Y'); ?>
- </p>
- </tr>
- <tr>
- <td>
- <strong>Message sent by:</strong> <cite><?php echo $this->name; ?></cite>
- </td>
- </tr>
- <tr>
- <td style="border-bottom: solid 2px #CCCCCC;">
- <strong>Message:</strong><br />
- <p style="margin-top: 5px; margin-bottom: 10px;">
- <?php echo strip_tags($this->message, '<a>'); ?>
- </p>
- </td>
- </tr>
- </tbody>
- </table>
-</body>
-</html>

0 comments on commit d50a47f

Please sign in to comment.