spencerr1 has asked for the wisdom of the Perl Monks concerning the following question:
I'm learning CGI bought a couple of books. I can run scripts from one book but I can't from the other book. I have tried to fix this introductory script but no output.
<html> <head> <title>Animal</title> </head> <body> <form action="cgi-bin/animal.cgi" METHOD=POST> Which animal? <INPUT type="text" name="animal"> <P><INPUT type="submit"> </form> </body> </html>
CGI script #!/usr/local/bin/perl -wT use strict; use CGI ':standard'; my $animal; $animal = param('animal'); print "Content-type: text/html\n\n"; print "Show me the $animal";
Any ideas. Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: CGI question
by 7stud (Deacon) on Feb 08, 2013 at 18:15 UTC | |
by MidLifeXis (Monsignor) on Feb 08, 2013 at 18:51 UTC | |
by Anonymous Monk on Feb 08, 2013 at 19:29 UTC | |
Re: CGI question
by toolic (Bishop) on Feb 08, 2013 at 16:28 UTC | |
by spencerr1 (Novice) on Feb 08, 2013 at 17:32 UTC | |
Re: CGI question
by tobyink (Canon) on Feb 08, 2013 at 16:27 UTC | |
by spencerr1 (Novice) on Feb 08, 2013 at 17:31 UTC | |
Re: CGI question
by 7stud (Deacon) on Feb 09, 2013 at 00:35 UTC | |
by Anonymous Monk on Feb 09, 2013 at 05:38 UTC | |
Re: CGI question
by Khen1950fx (Canon) on Feb 08, 2013 at 21:01 UTC | |
by Anonymous Monk on Feb 09, 2013 at 05:37 UTC |
Back to
Seekers of Perl Wisdom