CGI- Form help needed

He has: 5 posts

Joined: Mar 2004

Friend of mine changed her server from a UNIX to a Windows platform and in the process, seemed to have lost the scripts they had for their forms to run properly. I think they used something available on the server. Unfortunately, the CGI scripts are no longer available and they have no idea of how to make it work. They simply want the form results to go to an email address. I have the form and I have a cgi-script that I downloaded from Matt's Script Archive. I just need someone to "hold my hand" to get the correct info put it.

If you can help, please email me at: [email protected], ICQ me at: 169501328 or Yahoo messenger me at: wreckdiver197. Thank you!

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Is Perl installed on the new server?

He has: 5 posts

Joined: Mar 2004

Suzanne wrote: Is Perl installed on the new server?

I don't know . . .I can check . . .

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

Well if it isn't, you're going to have to do more than point the files somewhere. Formmail is written in Perl. It won't work without that language on the server.

He has: 5 posts

Joined: Mar 2004

Actually the script I downloaded was "bizmail.pl" . . .

Excuse my ignorance, but that is why it has "#!/usr/bin/perl, "make sure the path to pearl is correct above."

The woman is using Hostway.com. . .

Suzanne's picture

She has: 5,507 posts

Joined: Feb 2000

.pl is an extension that means Perl is the language it's written in.

The shebang (#!/usr/bin/perl) tells the server where to find the language to use to understand the script. If that language is not on the server, there is no way for that path to be correct.

Since even the cheapest Windows server package at Hostway has Perl installed, apparently (did you look on their website?) you can contact the host for the correct path to Perl.

He has: 5 posts

Joined: Mar 2004

Thanks, Suzanne . . .

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.