CGI question

Support, Discussion, Reviews
Post Reply
User avatar
Coatlicue [KoE]
Star Farmer
Star Farmer
Posts: 362
Joined: July 9, 2002, 10:51 pm
Gender: Female
Location: Chicago Suburbs
Contact:

CGI question

Post 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!!
Coatlicue Tlatoani [Retired] ~ Keepers of the Elements ~ Keeper of the Gnome
Sinnahmynh ~ 60 Gnome Warrior ~ Light of Dawn (WoW) ~ Lightbringer
Kailye * Kyonmoon * Shinyong (Horde) ~ Light of Dawn (WoW) ~ Lightbringer

Zoe: No one's gonna force you to go, Jayne. As has been stated -- this job's strictly speculative.
Jayne: Good. Cause I don't know these folks, don't much care to.
Mal: They're whores.
Jayne: I'm in.
User avatar
Xouqoa
Way too much time!
Way too much time!
Posts: 4105
Joined: July 2, 2002, 5:49 pm
Gender: Mangina
XBL Gamertag: Xouqoa
Location: Dallas, TX
Contact:

Re: CGI question

Post 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.
"Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings." - John F Kennedy
User avatar
Coatlicue [KoE]
Star Farmer
Star Farmer
Posts: 362
Joined: July 9, 2002, 10:51 pm
Gender: Female
Location: Chicago Suburbs
Contact:

Re: CGI question

Post 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.
Coatlicue Tlatoani [Retired] ~ Keepers of the Elements ~ Keeper of the Gnome
Sinnahmynh ~ 60 Gnome Warrior ~ Light of Dawn (WoW) ~ Lightbringer
Kailye * Kyonmoon * Shinyong (Horde) ~ Light of Dawn (WoW) ~ Lightbringer

Zoe: No one's gonna force you to go, Jayne. As has been stated -- this job's strictly speculative.
Jayne: Good. Cause I don't know these folks, don't much care to.
Mal: They're whores.
Jayne: I'm in.
User avatar
Xouqoa
Way too much time!
Way too much time!
Posts: 4105
Joined: July 2, 2002, 5:49 pm
Gender: Mangina
XBL Gamertag: Xouqoa
Location: Dallas, TX
Contact:

Post 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. :(
"Our problems are man-made, therefore they may be solved by man. No problem of human destiny is beyond human beings." - John F Kennedy
User avatar
Coatlicue [KoE]
Star Farmer
Star Farmer
Posts: 362
Joined: July 9, 2002, 10:51 pm
Gender: Female
Location: Chicago Suburbs
Contact:

Post 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 :)
Coatlicue Tlatoani [Retired] ~ Keepers of the Elements ~ Keeper of the Gnome
Sinnahmynh ~ 60 Gnome Warrior ~ Light of Dawn (WoW) ~ Lightbringer
Kailye * Kyonmoon * Shinyong (Horde) ~ Light of Dawn (WoW) ~ Lightbringer

Zoe: No one's gonna force you to go, Jayne. As has been stated -- this job's strictly speculative.
Jayne: Good. Cause I don't know these folks, don't much care to.
Mal: They're whores.
Jayne: I'm in.
Post Reply