Yes, I have the CGI module.
What should I put into the script?

> Kyle,
>       Do you have the CGI module available? You need to parse the 'get'
> parameters and with CGI it's really easy.
> David
> 
> -----Original Message-----
> From: Kyle Babich [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, June 22, 2002 8:53 AM
> To: [EMAIL PROTECTED]
> Subject: Can someone tell me what I did wrong with this?
> 
> 
> I'm a beginner.  The following is what I wrote:
> 
> 
> 
> #!/usr/bin/perl
> print "Content-type:text/html\n\n";
> 
> @days = ("Sunday","Monday","Tuesday","Wednesday","Thursday",
>          "Friday","Saturday");
> @months = ("January","February","March","April","May","June",
>            "July","August","September","October","November",
>            "December");
> 
> ($sec,$min,$hr,$mday,$mon,$year,$wday,$yday,$isdst) =
> localtime(time);
> $year = $year + 1900;
> 
> if ($body eq "yahoo") {
> 
> print "<a href=\"http://www.yahoo.com/\";>Yahoo</a>\n";
> 
> } elsif ($body eq "date") {
> 
> print "$days[$wday] $mday $months[$mon] $year\n";
> 
> }
> 
> 
> 
> 
> I uploaded it and it works without giving me a 500 and when I check the
> syntax via the shell it says everything is correct so why when I go to
> test.cgi?body=yahoo or test.cgi?body=date the pages just appear blank
> instead of showing the content?
> 
> Here are the urls:
> http://kb2.net/cgi-bin/test.cgi?body=yahoo
> http://kb2.net/cgi-bin/test.cgi?body=date
> 
> Can someone tell me what I did wrong?
> 
> Thank you
> 
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to