How do I do this in Javascript/Another programming language?

I need to know how to make the code so it emails what a person types, what is the code?

Emails what a person types? Do you mean a key logger? in that case that is illegal and is a felony to do so. (also very easy to make)

or do you mean

<?php
if(isset($_POST[’email’])) {

// CHANGE THE TWO LINES BELOW
$email_to = “email@email.com”;

$email_subject = “Applications”;

function died($error) {
// your error code can go here
echo “We are very sorry, but there were error(s) found with the form you submitted. “;
echo “These errors appear below.

“;
echo $error.”

“;
echo “Please go back and fix these errors.

“;
die();
}

// validation expected data exists
if(!isset($_POST[‘first_name’]) ||
!isset($_POST[’email’]) ||
!isset($_POST[‘age’]) ||
!isset($_POST[‘games’]) ||
!isset($_POST[‘comments’])) {
died(‘We are sorry, but there appears to be a problem with the form you submitted.’);
}

$first_name = $_POST[‘first_name’]; // required
$email_from = $_POST[’email’]; // required
$age = $_POST[‘age’]; // required
$games = $_POST[‘games’]; // required
$comments = $_POST[‘comments’]; // required

$error_message = “”;
$email_exp = ‘/^[A-Za-z0-9 ._%-@]+$/’;
if(!preg_match($email_exp,$email_from)) {
$error_message .= ‘The Email Address you entered does not appear to be valid.
‘;
}
$string_exp = “/^[A-Za-z .’-]+$/”;
$num_exp = “/^[0-9]+$/”;
$all_exp = “/^[A-Za-z0-9 ._%-]+$/”;
if(!preg_match($all_exp,$first_name)) {
$error_message .= ‘The Name you entered does not appear to be valid.
‘;
}
if(!preg_match($num_exp,$age)) {
$error_message .= ‘The Age you entered does not appear to be valid.
‘;
}
if(strlen($games) < 0) {
$error_message .= ‘The Game(s) you entered do not appear to be valid.
‘;
}
if(strlen($comments) < 2) {
$error_message .= ‘The Comments you entered do not appear to be valid.
‘;
}
if(strlen($error_message) > 0) {
died($error_message);
}
$email_message = “Form details below.\n\n”;

function clean_string($string) {
$bad = array(“content-type”,”bcc:”,”to:”,”cc:”,

Leave a Reply