3 Replies Latest reply on Apr 2, 2010 5:19 PM by 370H55V


    jasperimage66 Level 1

      I have a site in which I have done a form

      in order to for people to contact me. My host company is

      just host.com which uses cgiemail




      Basically I have attempted numerous times to set my target for the form using thier instructions but all has failed,.


      Can anyone provide assistance re the target script.



        • 1. Re: DREAMWEAVER CS4
          370H55V Level 4

          Your form needs to indicate that it's going through cgi.bin and it has to have a recipient named that is a valid email address.


          My hosting company has a wizard that produces the code for the form to be copied and pasted into the contact page at the time it creates the cgi.bin folder.

          Below is a generic sample I have used




          <form action="/cgi-bin/formmail/formmail.pl" method="POST">
            <div align="left">
                <input type="hidden" name="recipient" value="yourmail@yourdomain.com">
                <input type="hidden" name="subject" value="Web FormMail">
              <p align="center"><strong> Contact form</strong><br>
                Please tell us your name:<br>
                <input name="name" size="36" maxlength="30">
                Where are you from (City Only):<br>
                <input name="name" size="30" maxlength="30">
                Your e-mail address: <br>
                <input name="email" size="40" maxlength="30">
                Is this regarding catering?
                <input type="radio" name="question?" value="Yes" checked>
                <input type="radio" name="question?" value="No">
              <p align="center"><br>
                Please type your message below:<br>
                <textarea wrap="physical" name="comments" cols="70" rows="15"></textarea>
                <input type="submit" value="send email" name="submit">
                <input type="reset" value="clear" name="reset">
                <br />
                 <p>You will be taken to a confirmation page when you send your message.</p>
                <br />
                <p>Use your browser's "Back" arrow to return to the website.</p> <br>




          Also, you should edit the title of the post to something more specific like, "Creating an e-mail form using cgi" so people who know more about it than I will know what you're looking for.


          Message was edited by: CowboyInAZ

          • 2. Re: DREAMWEAVER CS4
            jasperimage66 Level 1

            Cgi reccomend the following


            6. Make sure the ACTION is correct.

            The trickiest part of the HTML form is getting the ACTION set correctly. Start with the URL of your e-mail template, then split it into two parts, e.g.

            \                /\                             /
             `--- Part 1 ---'  ` -------- Part 2 ----------'

            First type the URL of your e-mail template into a web browser and make sure it's correct. Then put the script name in the middle. Usually this is ``/cgi-bin/cgiecho'', but it depends on how your server is configured. On web.mit.edu it happens to be ``/bin/cgiecho'', thus my ACTION looks like this:

            \                /\          /\                             /
             `--- Part 1 ---'  script name ` -------- Part 2 ----------'

            For simplicity, you may leave out part 1, but you must include it if you want to test your form as a local file. If you don't know what that means, just feel free to omit part 1.


            IThis would be to enter in the ACTION field in the Form ID properties field.


            I am new to Dreamweaver and I just dont understand this action.

            • 3. Re: DREAMWEAVER CS4
              370H55V Level 4

              The first line of the form code should read:

              <form action="web.mit.edu/bin/cgiecho/wwwdev/cgiemail/" method="POST">


              based on what you just added here.


              Then as long as you have a valid email address set as the recipient, it should work.