Javascript – A form that spits out the input

formsjavascriptphptemplates

I can't for the life of me find a form that doesn't email the results that you submit.

I'm looking to find a form that I can have users enter simple data that i can then spit back out at them in different arrangements. If they submit First and Last, I'll spit out, amongst other things, FirstLast@domain.com. I'm willing to scrounge the code manually to do this, but I cant find a simple form that would allow me to do this.

Edit: PHP or similar simple languages. I've never touched .NET before.

Best Solution

Form:

<form action="process.php" method="post">
    First: <input type="text" name="first" />
    Last: <input type="text" name="last" />
    <input type="submit" />
</form>

Next page:

<?php

$first = $_POST['first'];
$last =  $_POST['last']

echo $first . "." . $last . "@domain.com";
?>

See http://www.w3schools.com/php/php_forms.asp for more examples and explanation