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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script file gets downloaded??

Status
Not open for further replies.

McCloud77

Instructor
Jun 4, 2001
8
CA
I collected a lot of info about cgi and perl. At the end I could sew things together. I designed the form, in the Action keyword I put the name of the script file (.pl) that should run when the Submit button gets clicked. What happens is that the script file gets downloaded instead of being run. What is going on? Please help. My URL is if someone would like to test what I have.

Thank you folks

McCloud
 
make sure in your script you have the line:

print "content-type: text/html\n\n";

close to the top. this tells the brpwser what kind of file to expect from the script, i'm assuming here your going to be printing out html to a web browser?

hope this helps
Sib
Siberdude
siberdude@settlers.co.uk
 
It sounds like your server doesn't know it's supposed to execute the file instead of downloading it. Did you put the file in your cgi directory (usually cgi-cin or cgi-local)? In your action it should be "/cgi-bin/program.pl". Tracy Dryden
tracy@bydisn.com

Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top