CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
who can find out my errors,please?

 



tack
Novice

Nov 26, 2002, 6:08 AM

Post #1 of 4 (1044 views)
who can find out my errors,please? Can't Post

diy.html:
<html>
<body>
<form method="get" action="http://127.0.0.1/bin/perl.exe?ok.pl">
<input type="submit" name="B2" value="submit">
</form>
</body>
</html>

ok.pl:
#!c:/perl/bin/perl.exe
print "Content-type:text/html\n\n";
print "<html>";
print "<body>";
print "You are successful.";
print "</body>";
print "</html>";

It is an easest program.But I don't know why it doesn't work. Who knows why? Could you tell me?Thanks very much.
I am a beginner of perl. I am a Chinese. I want to learn perl by this forum. I hope it will be helpful to me .
Thanks.


(This post was edited by tack on Nov 26, 2002, 6:10 AM)


thodi
stranger

Nov 26, 2002, 3:56 PM

Post #2 of 4 (1036 views)
Re: [tack] who can find out my errors,please? [In reply to] Can't Post

1. Did you set up a web server on your machine which can handle Perl scripts?
2. Does your ok.pl-script lie in a directory in which your web server searches for perl scripts?
3. You normally don't call perl.exe, you call the perl script, like this:

Code
<form method="get" action="http://127.0.0.1/cgi-bin/ok.pl"> 
<input type="submit" name="B2" value="submit">
</form>

4. Learning a language only through a forum is a bad idea. There are many great books about Perl out there (and also especially about CGI + Perl ... just ask davorg, he knows a lot of them ;-)).


davorg
Thaumaturge / Moderator

Nov 27, 2002, 2:18 AM

Post #3 of 4 (1029 views)
Re: [tack] who can find out my errors,please? [In reply to] Can't Post

Define what you mean by "doesn't work". What behaviour are you seeing that you don't expect?

Is anything getting written to your web server error log?

--
Dave Cross, Perl Hacker, Trainer and Writer
http://www.dave.org.uk/
Get more help at Perl Monks


tack
Novice

Nov 27, 2002, 9:23 PM

Post #4 of 4 (1022 views)
Thank you very much. [In reply to] Can't Post

Thank you very much . My problem had been solved yesterday.The pathogeny is that my folder property is not right and the path of perl.exe in the regedit is not right. Now, it works very well.
i feel here is very warm . my question can get a good reply fastly. i can meet many partners and teachers here. i love perl . i love Guru.

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives