[ create a new paste ] login | about

Link: http://codepad.org/Ewpmx7ol    [ raw code | fork ]

PHP, pasted on Apr 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

$name = isset($_POST['name']) ? $_POST['name'] : false;
$email = isset($_POST['email']) ? $_POST['email'] : false;
$web = isset($_POST['web']) ? $_POST['web'] : false;
$text = isset($_POST['text']) ? $_POST['text'] : false;

$receiver = "xxx@gmail.com";

if(($name && $email && $web && $text) != false)
{
    // It's okay to send email now.
    $subject = 'Contact Form Submission'; // Place where we left of at Checkpoint.
    $message = "Name: $name\n\nWebsite :$web\n\nComments:$body"; // Place where we left of at Checkpoint.
    sendMail($email, $receiver, $subject, $message); // Place where we left of at Checkpoint.
}

?>


Output:
No errors or program output.


Create a new paste based on this one


Comments: