Solved

sending results to 2 people from info on form

Posted on 1998-07-22
1
188 Views
Last Modified: 2013-12-25
I have an information form at the location below.  When I submit all I get is my visitor.pl code on the screen.
the mods are 755 on the files and the cgi-bin directory it is stored in.  On another unix system I was getting a 500 error in the code also.  I did not do the pl code but was told it would work.  all I want the pl to do is email to the sender and a receiver the data entered on the form.  from what I can see this form does more but at this point all I really want it to do is spit out the data the user entered on the form then pressed the submit button at bottom.  if there is any easier code I am all for it.

TIA

http://gomer.kent.edu/~csindorf/cgi-bin/guestbook.html
0
Comment
Question by:craigs052998
1 Comment
 
LVL 4

Accepted Solution

by:
mitek earned 50 total points
ID: 1831134
Looks like a webserver config problem. I would suspect this:

a) there is no association for .cgi extention, so webserver doesn't know how to treat .cgi files. Then, adding something like this

AddHandler cgi-script .cgi
AddHandler cgi-script .pl  

to /usr/local/etc/httpd/conf/srm.conf would help

if it's this problem, webserver would display scripts as text

b) the cgi-bin directory in which the script resides is unknown to the webserver. NCSA-like (ex: Apache) servers will like this appended to the end of their /usr/local/etc/httpd/conf/access.conf file:

<Directory /usr/local/etc/httpd/htdocs/path-to-your-cgi-bin/cgi-bin>
Options Indexes ExecCGI FollowSymLinks
DirectoryIndex index.html
</Directory>

if it's indeed this, it would generate 500 Server Error

what else ?
c) maybe, #!/usr/bin/perl -- is not a valid path to perl on the system. Check carefully. It would be 500 Server Error.

Good luck.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is becoming increasingly popular to have a front-page slider on a web site. Nearly every TV website,  magazine or online news has one on their site, and even some e-commerce sites have one. Today you can use sliders with Joomla, WordPress or …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now