} ?> "><br/> subject: <input type="text" name="subject" value="<?php if (isset($_REQUEST['subject'])) { echo htmlspecialchars($_REQUEST['subject']); } ?> "><br/> htmlBody: <input type="text" name="htmlBody" value="<?php if (isset($_REQUEST['htmlBody'])) { echo htmlspecialchars($_REQUEST['htmlBody']); } ?> "><br/> textBody: <input type="text" name="textBody" value="<?php if (isset($_REQUEST['textBody'])) { echo htmlspecialchars($_REQUEST['textBody']); } ?> "><br/> <input type="submit"> <input type="hidden" name="go"> </form> <?php include '../infusionsoft.php'; include 'testUtils.php'; if (isset($_REQUEST['go'])) { $out = Infusionsoft_APIEmailService::createEmailTemplate($_REQUEST['templateTitle'], $_REQUEST['visibility'], $_REQUEST['fromAddress'], $_REQUEST['toAddress'], $_REQUEST['ccAddresses'], $_REQUEST['bccAddresses'], $_REQUEST['contentType'], $_REQUEST['subject'], $_REQUEST['htmlBody'], $_REQUEST['textBody']); var_dump($out); }