Skip to content

Instantly share code, notes, and snippets.

@alandipert
Forked from anonymous/mail.php
Created August 1, 2009 11:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alandipert/159638 to your computer and use it in GitHub Desktop.
Save alandipert/159638 to your computer and use it in GitHub Desktop.
<?php
include 'functional.php';
mail(
"alan.dipert@gmail.com",
"Simplerochester.com Submission",
implode(
"\n",
map(
'$f', '"$f: $_POST[$f]"',
select(
'isset($_POST[$_])',
array(
"first-name",
"last-name",
"email-address",
"phone-number",
"note"
)
)
)
)
);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment