Created
February 9, 2014 16:52
-
-
Save ksnider/8901996 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 | |
| // Form -> https://dfy90994.infusionsoft.com/app/form/rediect-demo1 | |
| /* Result -> http://api-demo.com/scripts/redirect1.php?contactId=139&inf_contact_key=9b4162c036ec99f219b6a58e65631ff0463e882af0cdd7a482120a96f57c7544&inf_field_FirstName=Demome&inf_field_Email=demome%40kimsnider.com&inf-h3l6I1Ke8aJBAi2k=&inf_option_OrderType=389 (389 = subscription) (391=one time) */ | |
| // thank-you - > api-demo.com/scripts/redirect1.php | |
| $type= $_GET['inf_option_OrderType']; | |
| $firstname = $_GET['inf_field_FirstName']; | |
| switch ($type) { | |
| case 389: | |
| header("location: https://dfy90994.infusionsoft.com/app/orderForms/Test-Order-Form"); | |
| break; | |
| case 391: | |
| header("location: https://dfy90994.infusionsoft.com/app/orderForms/Test-Kim"); | |
| break; | |
| default: | |
| header("location: http://api-demo.com/"); | |
| break; | |
| } | |
| // Make sure no html before header |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment