I can creat a basic website (using DreamWeaver), but just creating a folder and naming it CGI-BIN does not seem to work :-(
My questions are:
-how do I create a CGI bin folder in DW?
-what exactly do I need to do to transfer my formmail.pl into that CGI bin? (formmail.pl was taken from Matt's Script Archives)
-I read on many tutorial pages that I have to FTP my CGI using ASCII mode. But how do I choose that mode in DW?
I would greatly appreciate any help!
The mailer script is an interactive process - data is submitted to it from the web page and the server executes the script and returns a result. You are not going to be able to do this in Dreamweaver in any way, and it won't execute on your local computer in this way.
Begin looking around for other methods of transferring files to your server - the most common being FTP using WS_FTP. In this program, you will be able to create a directory in which to install any executable scripts, such as your mailer. You can create a directory (folder) on the server, let's call it "cgi" (not cgi-bin, so it doesn't get confused with the system's cgi-bin.) Once you create the "folder," will be able to right-click on it and select CHMOD, which means change mode, to set permissions for the folder to executable so any files in this directory can run. Open the directory, copy the script into there, and set the permissions to execute on the FILE also.
If you've no idea about anything I've just said, it's time to get out of Dreamweaver and your hands dirty. :-) Google up for topics on setting permissions, executable scripts, and go back to where you downloaded your formail.pl and read up on all the documentation.
I will keep trying as I absolutely have to make it work!
Stardancer if you must make it work, it's going to take a little reading up on perl as it's obvious you have something wrong. "Server internal error" is worthless to you as you know, it can be anything. Take perl_diver's suggestion, download perl for your local computer (it's free) and learn how to run the scripts by command line. This is where you start, it will tell you if there is anything inherently wrong with the script.
I am a bit confused about FTP program choice. You say that about any FTP would work, but are so much against DreamWeaver. DW has an FTP program built in and why wouldnèt it work for transfering files to the server if any other would?
Also I read about every web site about it I could find withing last few days and did everything that was suggested.
What is happening now: when I click "submit" button on my form, the form action "/cgi-bin/formmail.pl" is acting as a link and takes me to formmail.pl instead of triggering the script.