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","Septembe
you need a section of code that will accept the data passed to it and devide
it up.. I'm sure soemone here can give you a good example of that code...
Chris
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Seems that you missed a line to capture the $ENV{QUERY_STRING};
such as : ($ignore, $body) = split (/=/, $ENV{QUERY_STRING});
when (! $body), your if and elsif statements will not be run.
- Original Message -
From: "Kyle Babich" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday,
On Sat, 22 Jun 2002 12:52:46 GMT, [EMAIL PROTECTED] (Kyle Babich) wrote:
>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",
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, Jun
So where does that go in the script? I learn better by actually seeing
the finished product.
> Seems that you missed a line to capture the $ENV{QUERY_STRING};
> such as : ($ignore, $body) = split (/=/, $ENV{QUERY_STRING});
> when (! $body), your if and elsif statements will not be run.
>
>
>
--- Kyle Babich <[EMAIL PROTECTED]> wrote:
> 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","Apri
Hi,
I was thinking to use session for my application. But there are so many
options of the modules in CPAN. Apache::session and PHP::Session are
ones of the options. As i programmed in PHP before, i'm quite interested
in using PHP::Session as it's simple and easy.
I would like to know the positi
What would be better then useing the following? I'm lookign for something
better and more secure. If there is such a thing
sub SplitInput{
$meth = $ENV{REQUEST_METHOD};
if ($meth eq "GET") {
$formInfo = $ENV{QUERY_STRING};
} elsif ($meth eq "POST") {
read(STDIN, $formInfo, $ENV{C
on Sat, 22 Jun 2002 19:21:12 GMT, wrote:
> What would be better then useing the following? I'm lookign for
> something better and more secure. If there is such a thing
CGI.pm
--
felix
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--- [EMAIL PROTECTED] wrote:
> What would be better then useing the following? I'm lookign for something
> better and more secure. If there is such a thing
>
> sub SplitInput{
>
> $meth = $ENV{REQUEST_METHOD};
> if ($meth eq "GET") {
> $formInfo = $ENV{QUERY_STRING};
> } elsif ($meth
Hello Kyle,
> What does print <<"END_HTML"; do as apposed to < What does the qw/:standard/; do?
That imports the standard CGI functions into your namespace. If you don't do that,
you have to
instantiate a new CGI object. Compare:
use CGI;
my $query = CGI->new;
my $data = $query->param
Hello Kyle,
> What does print <<"END_HTML"; do as apposed to < What does the qw/:standard/; do?
That imports the standard CGI functions into your namespace. If you don't do that,
you have to
instantiate a new CGI object. Compare:
use CGI;
my $query = CGI->new;
my $data = $query->param
I have a really simple question I hope. The redirect doesn't work. It
doesn't work if I print it or not. Why is it not working? Any help will be
much appreciated.
Thank you,
Erik
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
use CGI qw(:standard);
use CGI::Carp qw(fatalsToBrowser);
14 matches
Mail list logo