8 Replies Latest reply: May 12, 2011 3:46 PM by LostMIke RSS


    LostMIke Community Member

      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.





        • 1. Re: Auto-response
          martcol Community Member

          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.




          <oops>Forgot the link:




          And there's this thread which says pretty much the same thing: http://forums.adobe.com/thread/118650?tstart=60

          • 2. Re: Auto-response
            pziecina Community Member



            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 -

            1. Purchase - http://www.webassist.com/dreamweaver-extensions/universal-email/?lid=email.
            2. Follow the instructions given in the documentation for sending an email with attachment on form/email success.


            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.




            • 3. Re: Auto-response
              LostMIke Community Member

              One of my incoming emails has been down so I didn't see any messages from it for 2 days

              I will look this over. Thanks

              • 4. Re: Auto-response
                nickentin Community Member

                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 -->




                          $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">



                Should be that simple.



                • 5. Re: Auto-response
                  LostMIke Community Member

                  Super, thanks. Now that I have my 5 days of "lost" emails taken care of I will look it over.

                  • 6. Re: Auto-response
                    LostMIke Community Member

                    Found some time to play with this.

                    Exactly where do I put the source of the PDF?

                    • 7. Re: Auto-response
                      nickentin Community Member

                      Where ever you want to store the pdfs.  Just make sure that the PHP has:

                      header("Location: [location of pdf goes here]");

                      So long as that points to a valid file location, you should be fine.



                      • 8. Re: Auto-response
                        LostMIke Community Member