Can someone tell me what I did wrong with this?

2002-06-22 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread WyvernGod
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]

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread Connie Chan
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,

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread zentara
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",

RE: Can someone tell me what I did wrong with this?

2002-06-22 Thread Kyle Babich
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

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread Kyle Babich
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. > > >

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread Ovid
--- 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

Session modules to use

2002-06-22 Thread Niko Gunadi
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

GET/POST handleing

2002-06-22 Thread WyvernGod
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

Re: GET/POST handleing

2002-06-22 Thread Felix Geerinckx
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]

Re: GET/POST handleing

2002-06-22 Thread Ovid
--- [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

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread Ovid
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

Re: Can someone tell me what I did wrong with this?

2002-06-22 Thread Ovid
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

Question about redirect

2002-06-22 Thread Erik Riggenbach
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);