Page 1 of 1

CGI question

Posted: February 9, 2006, 12:57 pm
by Coatlicue [KoE]
Hello all,

our company now has 2 websites, and we're in the process of uploading our current site to our new domain. Everything works so far, the links, the pictures, etc... the only thing I can't seem to get to work is the forms we have on our various pages that our customers fill out to receive more information. When I try and test the form, the new domain is resolving to a /cgi-bin/FormMail.pl address and saying this:

Not Found
The requested document was not found on this server.

I really don't know how to resolve this issue. I know it's gotta be some complicated cgi-bin thing going on, but I can't find any kind of file or way to fix this issue. Any help would be appreciated!!

Re: CGI question

Posted: February 9, 2006, 3:19 pm
by Xouqoa
Coatlicue [KoE] wrote:Hello all,

our company now has 2 websites, and we're in the process of uploading our current site to our new domain. Everything works so far, the links, the pictures, etc... the only thing I can't seem to get to work is the forms we have on our various pages that our customers fill out to receive more information. When I try and test the form, the new domain is resolving to a /cgi-bin/FormMail.pl address and saying this:

Not Found
The requested document was not found on this server.

I really don't know how to resolve this issue. I know it's gotta be some complicated cgi-bin thing going on, but I can't find any kind of file or way to fix this issue. Any help would be appreciated!!
Well, the form action is probably pointing to /cgi-bin/FormMail.pl as the action. Do a find in your text editor for "action=" and you should find it inside the form tag. It'll look something like "<form name="form" action="/cgi-bin/FormMail.pl" method="post">".

Now, you either need to find a copy of FormMail.pl and place it on your server in order to process the form, or find another way to handle the form data so that it can send the information the customer enters to whoever it is supposed to go to. It is possible to just use a mailto:email@whatever.com link as the form action, but that's not the best way.

http://response-o-matic.com has a free CGI handler that you can configure to do what you want, I think.

Re: CGI question

Posted: February 9, 2006, 4:17 pm
by Coatlicue [KoE]
Xouqoa wrote:
Coatlicue [KoE] wrote:Hello all,

our company now has 2 websites, and we're in the process of uploading our current site to our new domain. Everything works so far, the links, the pictures, etc... the only thing I can't seem to get to work is the forms we have on our various pages that our customers fill out to receive more information. When I try and test the form, the new domain is resolving to a /cgi-bin/FormMail.pl address and saying this:

Not Found
The requested document was not found on this server.

I really don't know how to resolve this issue. I know it's gotta be some complicated cgi-bin thing going on, but I can't find any kind of file or way to fix this issue. Any help would be appreciated!!
Well, the form action is probably pointing to /cgi-bin/FormMail.pl as the action. Do a find in your text editor for "action=" and you should find it inside the form tag. It'll look something like "<form name="form" action="/cgi-bin/FormMail.pl" method="post">".

Now, you either need to find a copy of FormMail.pl and place it on your server in order to process the form, or find another way to handle the form data so that it can send the information the customer enters to whoever it is supposed to go to. It is possible to just use a mailto:email@whatever.com link as the form action, but that's not the best way.

http://response-o-matic.com has a free CGI handler that you can configure to do what you want, I think.
hey there... it is pointint to that /cgi-bin/FormMail.pl and I found a copy and placed it on our server in that particular directory. I also did a find like you asked it and it gives me "{FORM ACTION="cgi-bin/FormMail.pl" METHOD=POST enctype="x-www-form-urlencoded"}". (i changed the < to {...)

Still doesn't work :(
I think i'm doing something wrong heh.

Posted: February 9, 2006, 6:49 pm
by Xouqoa
Hmm... make sure the /cgi-bin/ folder is under your wwwroot folder on your server. Other than that, I dunno what else to suggest. :(

Posted: February 10, 2006, 3:32 pm
by Coatlicue [KoE]
Well, figured out what the issue was. Our hosting service prohibits the use of the formmail.pl since there's a "problem" with spammers. So they just duplicated the script for me and just renamed it. Working now. Thanks for the advice tho hon :)