In DW CS5 I would like to set up a page that would capture the individuals name and email address (they put it in) and it is forwarded to me. After that is done they are allowed to access a separate page and or be able to print out a PDF file.
Can this be done in DW and how? I dont know how to write script etc.
THanks
Mike
From your description I'm sure DW could do what you want. The weak link is that you need to know what you want it to do!
I don't think that you can achieve your aim without some scripting. This tutorial seems to do what you are looking for and you might get some clues from it. If you research enough, I imagine there will be something already written for you. It will just be a case of finding it, downloading it and following some instructions. The alternative is to learn something like PHP and build it yourself.
Martin
<oops>Forgot the link:
http://www.devshed.com/c/a/PHP/Simple-and-Secure-PHP-Download-Script-w ith-Limits-Tutorial/
</oops>
And there's this thread which says pretty much the same thing: http://forums.adobe.com/thread/118650?tstart=60
Hi
As I replied to your previous question regarding this, (to which you did not reply) you will have to use a server-side language.
First ensure your hosting provider uses/allows php, then -
You will have to have dreamweaver installed to use this extension.
Alternatively find someone who does html/css/php development, and pay them to do this for you, this will probably cost more than purchasing the extension, but if you do not know php, is possibly a better solution.
PZ
As PZ said, the best way to do this would be with PHP. This is fairly simple scripting, and if you have the time it is a worthwhile skill to have. The easiest way to do this would probably be to set up a page with a form that links to the pdf. It would look something like this:
<!-- in form.php -->
<?php
if(isset($_RECEIVE['submit']))
{
$body = "Form downloaded by:\nName:\t" . $_RECEIVE['name'] . "\nEmail:\t" . $_RECEIVE['email'];
mail("contact@mysite.com", "Subject", $body);
header("Location: redirectToHere.pdf");
}
?>
<!-- the rest of the html including: -->
<form method="post" action="form.php">
Name: <input type="text" name="name" size="20"><br />
Email: <input type="text" name="email" size="20"><br />
<input type="submit" name="submit" value="Submit">
</form>
Should be that simple.
Nick
North America
Europe, Middle East and Africa
Asia Pacific