Last active
January 2, 2016 12:49
-
-
Save ksnider/8305551 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?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