Posted on 1997-04-17
I am trying very hard to get my HTML script to call a simple Perl script. What is happening is that when the HTML calls the Perl script, the Perl script is brought up in WordPad. What is going on please ?
I am under the impression that as long as I have Perl on my system, I have no need to call out to my ISP's cgibin directory.
To follow up to your answers:
Thanks for your answers. I have enclosed the scripts as you asked. I altered the H_KEY_CLASSES_ROOT as suggested; sure enough WordPad.exe was in there, so I took it out.
Now when I run the guest.htm and press submit to call the Perl script, it tells me that : "This file does not have a program associated with it for performing this action. Create an association in My Computer by clicking View and then clicking options." So I went there, and under .PL files, it just says that the action is open. I also checked out my MIME setup in the Registry and there was nothing referring to .pl files, just an entry for html/text, which had a few fields in it that obviously meant something, but not to me.
Regarding the question about my ISP's cgibin directory, what I meant was, I should be able to get this all to run on my PC, as long as I have all the necessary bits and pieces, correct? Do I need to specify the location of perl.exe and perl100.dll in my Registry?
Any further help is much appreciated ! Sorry about lack of points for the answer, I seem to be running a little short.
Here is my Perl script :
print("My name is Yon Yonson,\n");
print("I live in Wisconsin,\n", "I work in a lumbermill there.\n");
Here is the HTML that calls it (First.pl)
<title> MOUSEPADKING Guestbook</title>
<body background="whamback.gif" vlink="#FF00FF">
<center><h2>Add to our Guestbook</h2></center>
Give us some feedback; what would you like on your mousepad ?
Is there a favorite picture that you would like us to put on your pad for you?
<b>Put some picture in your life !!!!</b>
<a href="list.htm"><font size=+1 color="#000000" face="Times New Roman"><b>BACK</b></font></a>
<FORM METHOD="POST" ACTION="D:\PERL\First.pl">
<table border=0 cellpadding=10>
<td><input type=text name=name size=30></td>
<td><input type=text name=email size=40></td>
<td><textarea name=comments cols=60 rows=4></textarea></td>
<input type=submit value="Add Entry"><input type=reset>