Click to See Complete Forum and Search --> : Having problems with cgi-bin


weeevil
07-27-2006, 05:17 AM
Hi all,

I am trying to setup a form to send info to an email address, in DreamWeaver i am using the following code:

<form name="form1" method="post" action="http://url.net/cgi-bin/FormMail.pl">
<input type="hidden" name="recipient" value="email@email.com">
<input type="hidden" name="subject" value="Request for product information from website">
<input type="hidden" name="redirect" value="http://url.net/thanks.htm">

and in the cgi-bin the shebang says: #!/usr/cgi-bin

If you hadn't realised im using FormMail, i have tried changing the FormMail file extension to cgi, and it still doesn't want to work.

At the moment i have no idea what folder permissions are on cgi-bin as i am having problems accessing the server, but would that be the cause?

Thanks!

PineSolPirate
07-27-2006, 11:41 AM
shouldnt that be #!/usr/perl or #!/usr/bin/perl depending on where your perl is? It's not a program called cgi-bin that interprets, its perl. Try that out.