I'm trying to get my page to send out an email containing already known variables by clicking on a link.
Is it possible to have php do something like:
print "<form action='/pg_test.php' method='post'>
<input type='image' name='mailit' src='/images/add.png'>
</form>";
and have something in the top of the script that says:
if (isset($POST['mailit'])){
$email = mail("emailaddress", "Do not call addition", "$POST[areacode] $POST[prefix] $POST[suffix]",
"From: donotcall@donotcall.gov\r\n");
}