-
☆ A M B ☆
- 24,524 Posts
Snippet call:
[!eForm? &formid=`PDFDownloadForm` &tpl=`PDFDownloadFormTpl` &from=`[+email+]` &fromName=`[+Name+]` &replyto=`[+email+] &subject=`PDF Download Report` &report=`PDFReportTpl &thankyou=`PDFDownloadThankyouTpl`!]
Form chunk:
<p><span style="color:#900;">[+validationmessage+]</span></p>
<form id="PDFDownloadForm" method="post" action="[~[*id*]~]">
<input type="hidden" name="pdf" value="[*pagetitle*]" eform="::0::" />
<p><label accesskey="n" for="Name">Your Name</label>
<input type="text" name="Name" maxlength="60" eform="Your Name::1" /></p>
<p><label accesskey="e" for="email">Your Email Address</label>
<input type="text" name="email" size="40" maxlength="40" eform="Your Email Address:email:1" /></p>
<p><input type="submit" name="submit" value="Submit"></p>
</form>
Thankyou chunk (the file TV’s Hyperlink output widget takes care of the link and link text):
<p>Thank you for submitting this information. We only use it for internal purposes; it will not be shared with anyone else.</p>
<p>You may now [*ProductPDF*]</p>
Report tpl:
<h1>[+subject+]</h1>
<strong>Name: </strong>[+Name+]<br />
<strong>Email: </strong>[+email+]<br />
<strong>Product: </strong>[+pdf+]<br />
See it in action
http://www.sottwell.com/107.html I added the &ccsender=`1` parameter to my snippet call so you can see the report yourself; the report will be cc’d to the address you put in the email field when submitting the form.