Hi there,<div><br></div><div>I am wondering if anyone can help me with a Fox quandary. Here is what I want to do:</div><div><br></div><div>A. User fills out a form</div><div>B. Form result 1: a page is created with the ftime used to create the page name (pages are created with the post time as their name); this page is not viewable</div>
<div>C. Form result 2: Either an e-mail is sent with the result of the form, or the result is displayed on a success page, for easy printing (since the user cannot view the resulting page from B)</div><div><br></div><div>
I can do A and B, but I'm having problems with C.</div><div><br></div><div>In order to achieve the post time names, I'm using:</div><div><div><br></div><div>(:input hidden target value='{(ftime fmt="%F-%H-%M-%S")}':)</div>
</div><div><br></div><div>Unfortunately, it seems that this does not work when you try to specify more than one target with different actions. Adding this line doesn't work:</div><div><div>(:foxmail template=FoxNotifyLists.ProgramEmailTemplate target=FoxNotifyLists.ProgramEmailList :)</div>
</div><div>Nor adding this line:</div><div>(:foxadd template=My.Template target=Main.Success put=bottom foxaction=display:)</div><div><br></div><div>Both of those produce the same error: <span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; "><b>Warning</b>: Invalid argument supplied for foreach() in <b>/my/website/pmwiki/cookbook/fox.php</b> on line <b>532</b></span></div>
<div><br></div><div><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; line-height: 19px; "><b></b></span>I'm thinking perhaps the problem is that I've set the target using the hidden input line. However, if I try to set it in a foxadd line, like this, it still results in the same error:</div>
<meta charset="utf-8"><div><br></div><div><meta charset="utf-8">(:foxadd template=My.Template target='{(ftime fmt="%F-%H-%M-%S")}'</div><div><br></div><div>Does anyone have any ideas of how I could do this easier or better (or just make it work at all)?</div>
<div><br></div><div>Thanks,</div><div>Jon Haupt</div><meta charset="utf-8">