Apr 24th, 2010, 8:54 AM
Hi buckeyeaz,
Sure, no problem! This is certainly do-able, but it would take a little configuration.
Here's how I picture it working.
1. On the page that lists the documents, each link would be the same, only passing the name of the document to the form. Something like this:
2. Next, on the form page (form.php), you'd store that information in a hidden field to be passed along with the form submission.
3. Assuming this is a POST form - not hooked up with the Form Tools API - you'd configure Form Tools to pass along the document value to the thank you page (this is actually really easy - this tutorial explains something very similar).
4. Lastly, on the thankyou page, figure out which document is passed viat the query string and display the appropriate (real) link to the file. This is kind of explained in the previous tutorial.
Hope this helps!
- Ben
Sure, no problem! This is certainly do-able, but it would take a little configuration.
Here's how I picture it working.
1. On the page that lists the documents, each link would be the same, only passing the name of the document to the form. Something like this:
Code:
<ul>
<li><a href="form.php?doc=doc1">Document 1</a></li>
<li><a href="form.php?doc=doc2">Document 2</a></li>
<li><a href="form.php?doc=doc3">Document 3</a></li>
</ul>
2. Next, on the form page (form.php), you'd store that information in a hidden field to be passed along with the form submission.
Code:
<input type="hidden" name="document" value="<?php echo $_GET["doc"]" />
3. Assuming this is a POST form - not hooked up with the Form Tools API - you'd configure Form Tools to pass along the document value to the thank you page (this is actually really easy - this tutorial explains something very similar).
4. Lastly, on the thankyou page, figure out which document is passed viat the query string and display the appropriate (real) link to the file. This is kind of explained in the previous tutorial.
Hope this helps!
- Ben