?
Solved

sending results to 2 people from info on form

Posted on 1998-07-22
1
Medium Priority
?
213 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
mitek earned 200 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

Understanding Linux Permissions

Linux for beginners: How to view the permissions associated with files and directories and also how you can change them.

Question has a verified solution.

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

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
Recently I have been answering a lot of questions like this in IT forums that I frequent. The question posed is usually something along the lines of "We have software X installed and need to uninstall it for reason Y" or some other variant of the sa…
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

719 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