Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $name = $_POST['name'];
- $email = $_POST['email'];
- $age = $_POST['age'];
- $subject = $_POST['subject'];
- $message = $_POST['message'];
- $selectedcheckbox = 'None';
- if(isset($_POST['checkbox']) && is_array($_POST['checkbox']) && count($_POST['checkbox']) > 0){
- $selectedProjects = implode(', ', $_POST['checkbox']);
- }
- $body .= 'Selected Projects: ' . $selectedProjects;
- $to = "focusmouse.com@gmail.com";
- $subject = "Santas Letter";
- $message = "A visitor of domainstub.net has submitted the following requirements.\n\nName: $name\n\nEmail: $email\n\nage: $age\n\nSubject: $subject\n\nMessage: $message\n\nPlease respond to this enquiry within 24 hours. \n\nBest Regards\ndomainstub.net";
- if (isset($_POST['checkbox'][Naughty]))
- header("Location: naughty.php");
- else
- (isset($_POST['checkbox'][Nice]))
- header("Location: nice.php");
- ?>
Add Comment
Please, Sign In to add comment