Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with running perl from html

Status
Not open for further replies.

vodkadrinker

Technical User
May 16, 2002
163
GB
Hi I am very new to this and would like some help please.

This is my setup, Redhat Linux 9 running on a laptop, running mozilla as my browser locally.

I have create a guestbook html that call's the perl script but instead of running the perl script it just displays the contents of the file.

If i run the script from the unix command line it works fine.

A have copied the example from a book so it should work.

Any idea's or check's I could do, bear in mind this is my first script.

Thanks,
VD
 
Assuming you're running Apache as a webserver, you have to set up apache to run cgi scripts, and if that's done the script should reside in the cgi-bin directory
Code:
<form method=post action=/cgi-bin/myscript.pl>

We don't really have enough information to be specific here though.

The script in a cgi-bin directory (or one that's set up accordingly), and the html page in a subdirectoty of htdocs, vhtdocs, or something similar

HTH
--Paul


cigless ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top