06-11-2011, 03:49 PM
Quick and insecure example.
say your current page's form posts to /lol/noobs.php with their username in the variable with name "usr".
on noobs.php you would have:
<?php
if(isset($_POST['usr']))
{
$variable = $_POST['usr'];
mail('you@you.com', 'HAI DER (subject)', $variable);
}
?>
say your current page's form posts to /lol/noobs.php with their username in the variable with name "usr".
on noobs.php you would have:
<?php
if(isset($_POST['usr']))
{
$variable = $_POST['usr'];
mail('you@you.com', 'HAI DER (subject)', $variable);
}
?>