Skip to content

Instantly share code, notes, and snippets.

@ksnider
Last active January 2, 2016 12:49
Show Gist options
  • Select an option

  • Save ksnider/8305551 to your computer and use it in GitHub Desktop.

Select an option

Save ksnider/8305551 to your computer and use it in GitHub Desktop.
<?php
/*
$fname = $_POST['fname'];
$lname = $_POST['lname'];
$email = $_POST['email'];
$form = $_POST['formURL'];
*/
$fname = 'dritte';
$lname = 'da dawg';
$email = '[email protected]';
$form = 'http://trainandsimple.com/some-form.php';
$appt = 'May 17th';
// subject
$subject = 'Tell us what happened with ' . $fname . ' ' . $lname;
// message
echo $message = '
You had an appointment with ' . $fname . ' ' . $lname . ' on ' . $appt . '.<br/><br/> Click the link below to tell us what happened:<br/><br/>'.$form.'inf_field_FirstName='.urlencode($fname).'&inf_field_LastName='.urlencode($lname).'&inf_field_Email='.urlencode($email);
// Use urlencode any time you are constructing a URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment