Solved

sending results to 2 people from info on form

Posted on 1998-07-22
1
203 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 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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
This article will show, step by step, how to integrate R code into a R Sweave document
The viewer will learn how to count occurrences of each item in an array.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

751 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