Website on mac, html form, executing .pl file and I can't get it to work. :-)
I host a small website on iMac running 10.4.
I want to add a form so people can submit comments and then hit the submit button and the results be emailed to me. I do not want to use the mailto: command invoking the users email program because a lot of people use webmail these days.
When they hit submit button, I want my mac to send me an email showing me contents of the one text box.
This is absolutely nothing fancy and I only have one text box labeled "dirt", one submit button, and one reset button.
I downloaded a mailto.pl and placed it in my root directory of my site. I also created a folder named cgi-bin and placed it in there and I get the same result (see below).
I enter a few letters of text and hit submit. The result I get is a new Safari window opened up showing the contents of the mailto.pl file.
Am I missing something here? Why won't my mac execute the .pl file?
I need help, I have been at this 6 hours today and I am getting tired.
I use dreamweavermx 2004 if it matters
Regards
I want to add a form so people can submit comments and then hit the submit button and the results be emailed to me. I do not want to use the mailto: command invoking the users email program because a lot of people use webmail these days.
When they hit submit button, I want my mac to send me an email showing me contents of the one text box.
This is absolutely nothing fancy and I only have one text box labeled "dirt", one submit button, and one reset button.
I downloaded a mailto.pl and placed it in my root directory of my site. I also created a folder named cgi-bin and placed it in there and I get the same result (see below).
I enter a few letters of text and hit submit. The result I get is a new Safari window opened up showing the contents of the mailto.pl file.
Am I missing something here? Why won't my mac execute the .pl file?
I need help, I have been at this 6 hours today and I am getting tired.
I use dreamweavermx 2004 if it matters
Regards
Comments
you should already have a CGI-Executables folder in Library/WebServer.
I believe that is where apache expects it.
There is a script that may work for you EZ Form Mailer. And as usual you'll need to set up the script...
good luck... Randy
Another thing I have noticed is that after the move to tiger, my apache links from the faq that is installed automatically on your computer are broken.
Thanks for the help and I will report back my results.
Originally posted by MagicFingers
you may need to enable CGI in apache. There is some decent info HERE
you should already have a CGI-Executables folder in Library/WebServer.
I believe that is where apache expects it.
There is a script that may work for you EZ Form Mailer. And as usual you'll need to set up the script...
good luck... Randy
If not you'll have to do "chown www (name of file).pl" (apache runs as user "www"), and then "chmod 774 (name of file).pl"