Eric Edwards wrote:
> Hello List!
> I need some help.
> I know very little about CGI and HTML.
> The book I am using is "Learning Perl on Win32 Systems".
> I cannot get this program to work properly. I can get the form to come up
> but when I enter a value it brings up a download box and displays my code.
> If this works like other code, shouldn't it be in a loop?
I think you need to properly set up your webserver to support
CGI/Perl. Look at the docs that came with yout server.
> Thanks in advance.
> Eric
> # ice_cream.pl: program to answer *and generate* ice cream
> # favorite flavor form (version 3)
> use CGI qw(:standard);
> my $favorite = param("flavor");
> print header, start_html("Hello Ice Cream");
> h1("Hello Ice Cream");
> if ($favorite) {
> print p("Your favorite flavor is $favorite.");
> } else {
> # hr() emits horizontal rule: <hr>
> print hr(), start_form();
> print p("Please select a flavor: ",
> textfield("flavor", "mint"));
> print end_form(), hr();
> }
--
,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED]
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff)
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs