FW: mystery

2001-06-14 Thread Sally
-Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: 14 June 2001 09:54 To: perl Subject: mystery I got the following code from a tutorial. When I uploaded (FTP) it as a perl file I got more errors than you could shake a stick at. When I uploaded it as an html file it sort

quoted text in a perl form text field problem...

2001-06-14 Thread David Draley
I have a perl form that records to a MySql database. Every time someone uses the form and enters “quoted text” in a text box or text area the record is not sent. Is there a way to allow “quoted text” to be processed? Any recommendations? Thanks in advance David

Re: quoted text in a perl form text field problem...

2001-06-14 Thread fliptop
David Draley wrote: I have a perl form that records to a MySql database. Every time someone uses the form and enters “quoted text” in a text box or text area the record is not sent. Is there a way to allow “quoted text” to be processed? Any recommendations? use placeholders. ie.-

Telnet

2001-06-14 Thread Sally
I've seen lots of references to telnet, but I can't find an explanation of what it actually is. Is it similar to FTP?

Re: Telnet

2001-06-14 Thread Jean-Marc Y. Imbert
Hi Sally Telnet is a tcp/ip based terminal emulation program. You can open a session on remote hosts and perform actions directly as would you sit in front of the machine working with a console window. Ftp (file transfer protocol) is just one of the dozens of protocols that exist in the tcp/ip

RE: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-14 Thread Kris Cook
Personally, when I'm writing for others (particularly beginners, like here in the tutorial), I prefer to use the print statement as the author did, or a heredoc. It's explicit and obvious, and the reader can see precisely what is to be generated. I have been known, instead, to use the

RE: random graphix generator

2001-06-14 Thread mark crowe (JIC)
OK, so you know about srand, after that the Perl command is pretty easy. $A = int (rand (NUMBER)) This generates a random integer between 0 and NUMBER, including 0 but not including number - e.g int (rand (5)) will give 0, 1, 2, 3 or 4. 'rand' generates a random number up to the value defined

Re: beginner's addressbook tutorial - level of presentation

2001-06-14 Thread Roger C Haslock
Ladies and Gentlemen I find the general level of detail here a bit advanced for a 'beginner'. My mind whirls with questions such as 'Why our $variable?' 'Why class?' 'Why not CGI.pm?' Can the presentation not be simplified so that we see the solution to the primary problem first, and then

RE: javascript within print tag

2001-06-14 Thread Tillema, Glenn
The CGI module is not supposed to export any functions without their being explicitly requested. Maybe you have a version that someone else hacked? No matter. I honestly wouldn't know .. all of the functionality seems to be there. Also, since you are already using CGI.pm, why not take

Re: beginner's addressbook tutorial - step 3 - creating perlclasses and our first cgi

2001-06-14 Thread Curtis Poe
--- fliptop [EMAIL PROTECTED] wrote: That's *almost* correct. CGI.pm also states the charset that the document is to be rendered with: C:\perl -MCGI -e $q=CGI-new;print $q-header Content-Type: text/html; charset=ISO-8859-1 well, as you'll see in the next step, i include

RE: Telnet

2001-06-14 Thread Wilson, Tom
You can run telnet from a DOS prompt by entering telnet hostname or server on the command line. Regards, Tom Wilson -Original Message- From: Sally [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 11:51 AM To: Timothy Kimball; [EMAIL PROTECTED] Subject: RE: Telnet Are you

Re: calling a external cgi from a form passing parameters

2001-06-14 Thread Curtis Poe
--- Abel Lucano [EMAIL PROTECTED] wrote: my $uri_chars = '\x00-\x29\x2b\x2c\x2f\x3a-\x40\x5b-\x5e\x60\x7b-\xff'; Good points Curtis and thanks for your answers; I've applied (and understood) all your advices but when I fill the forms with valid entries, the submit is still passing wrong

RE: calling a external cgi from a form passing parameters

2001-06-14 Thread Kris Cook
Can we see your updated form code? I've fixed the problems curtis described below in a copy here, and called a perl script that just accepts the params and prints them, and it works fine. It may be a misplaced operation, that would be obvious to a new pair of eyes (hey, I can never see MY bugs:

Re: beginner's addressbook tutorial - level of presentation

2001-06-14 Thread fliptop
Roger C Haslock wrote: I find the general level of detail here a bit advanced for a 'beginner'. i was wondering whether this would be the case. some readers told me they thought it wasn't too advanced, but obviously you feel otherwise. anyone else care to comment on this issue? is the

Weekly list FAQ posting

2001-06-14 Thread casey
NAME beginners-faq - FAQ for the beginners-cgi mailing list 1 - Administriva 1.1 - I'm not subscribed - how do I subscribe? Send mail to [EMAIL PROTECTED] You can also specify your subscription email address by sending email to (assuming [EMAIL PROTECTED] is your email

RE: Telnet

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Sally wrote: Are you assuming I'm running from unix? I'm not I run on windows Telnet has been available on Windows since Windows 95, and you can do these exact same things of things. -- Brett http://www.chapelperilous.net/btfwk/

Re: Weekly list FAQ posting

2001-06-14 Thread Casey West
On Thu, Jun 14, 2001 at 10:46:56AM -0700, Mark Bergeron wrote: : Has this list had postings yet? I don't seem to be receiving any I think. Yes, quite a bit of traffic, actually. If you recieved this FAQ posting, you are getting mail from the list. Is something weird happening with your mail

Re: Telnet

2001-06-14 Thread Mel Matsuoka
At 01:59 PM 06/14/2001 -0400, Brett W. McCoy wrote: PuTTY is another decent Telent/SSH client, and provides a lot of decent xterm functionality, including mouse clipbaord support. Let me chime in to endorse PuTTY as well. It's a fantastic, fast and free (with no strings attached) telnet/ssh

Re: Telnet

2001-06-14 Thread Brett W. McCoy
On Thu, 14 Jun 2001, Mel Matsuoka wrote: IMO, telnet *should* be considered defunct, except when using it for debugging and diagnostic purposes (i.e. telnetting directly to service ports). If you (or your server admin) aren't using SSH, it's about high time that you should, for security's

Re: quoted text in a perl form text field problem...

2001-06-14 Thread Evgeny Goldin (aka Genie)
I was using the following : $event =~ s/\'/\\\'/g; push @sth, insert into $table values ( '$event', .. ); ( every element of @sth was executed later ) This allows me to insert values having both ' and

RE: So what am I doing incorrectly??

2001-06-14 Thread Greg Smith
Try: $A == 0 eq is for string comparisons and $A contains an integer. Greg S. Greg S. -Original Message- From: Luinrandir Hernson [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 14, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: So what am I doing incorrectly?? srand;

Re: So what am I doing incorrectly??

2001-06-14 Thread Timothy Kimball
Luinrandir Hernson wrote: : srand; : $A = int (rand (4)) : if ($A eq '0') {print BODY BACKGROUND=\images/celtknt0.jpg\\n}; : if ($A eq '1') {print BODY BACKGROUND=\images/celtknt1.jpg\\n}; : if ($A eq '2') {print BODY BACKGROUND=\images/celtknt2.jpg\\n}; : if ($A eq '3') {print BODY

Re: So what am I doing incorrectly??

2001-06-14 Thread Curtis Poe
--- Luinrandir Hernson [EMAIL PROTECTED] wrote: srand; $A = int (rand (4)) if ($A eq '0') {print BODY BACKGROUND=\images/celtknt0.jpg\\n}; if ($A eq '1') {print BODY BACKGROUND=\images/celtknt1.jpg\\n}; if ($A eq '2') {print BODY BACKGROUND=\images/celtknt2.jpg\\n}; if ($A eq '3') {print

Re: postgres schema

2001-06-14 Thread fliptop
[reply cc:'d to the list] Kalamity Force wrote: i have a real postgres newbie question. can you instruct me on how to implement this schema. I know that I have to put this text into a file, but how am I executing the script? create the db by typing at a command line: $createdb addressbook

CGI.pm install

2001-06-14 Thread Teresa Raymond
I need help installing CGI.pm module through ftp. First of all, I don't understand how I can where I write the below commands. I am at home and the server is on campus. I tested a CGI.pm script to see if it was installed, it may be but my cgi priveleges do not seem to allow me access. So,

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: I need help installing CGI.pm module through ftp. cgi.pm is part of the standard perl installation. does the box you're developing on have a recent installation of perl? you can find out the version by typing 'perl -v' at a command prompt.

Re: CGI.pm install

2001-06-14 Thread WebMaster AIM-US
If, for some reason, CGI.pm is not installed on the server, I believe you can place it in the folder where you are going to run the script (i.e your cgi-bin. That may pose some security issues I'm not aware of, but if all else fails ... Stephen

Re: CGI.pm install

2001-06-14 Thread fliptop
Teresa Raymond wrote: I tried the perl -v but get an Internal Server Error msg - no numbers nor anything else useful. here's what i get: $ perl -v This is perl, v5.6.0 built for i686-linux Copyright 1987-2000, Larry Wall Perl may be copied only under the terms of either the Artistic

beginner's addressbook tutorial - step 5 - Adding the start method and our first HTML::Template file

2001-06-14 Thread fliptop
step 5 is complete, and is available at: http://www.peacecomputers.com/addressbook_toot-step5.html coming next - step 6 - Writing the utility and SQL classes, and using Class::MethodMaker

RE:Telnet

2001-06-14 Thread Fco. Javier Valladolid Hdez.
Hi. Telnet is a Character based terminal program, you can accessed a remote terminal from your PC with your IP, ... I'm believe that Telnet is now defunct , best use SSH, is a similar program, but it is encrypted, as it provides best security... Excuse, my english is not very good! -

Re: Telnet

2001-06-14 Thread Derek Harding
What Javier says is very true about using ssh but if something happens to lock up at the remote computer it can be hard to get out with ssh without resorting to killing processes whereas, if the network is secure from peeking, one can end a telnet session with the Ctrl-] combination. I'm not