Re: sql statement parsing

2002-08-10 Thread Marty Landman
At 07:34 PM 8/10/02 +0300, Hytham Shehab wrote: > how can i parse the where clause in an SQL::Statement object instance? >$statement = SQL::Statement->new("select 1,2,3 from table where x=y"); Hytham, Although I haven't used SQL::Statement you can certainly do something like: $condition = $

Re: JavaScript and Perl

2002-07-07 Thread Marty Landman
At 10:21 AM 7/7/02 -0400, Bruce Maston, M.D., J.D. wrote: >Is there a way to convert a JavaScript variable into Perl? Bruce, the question is a bit invalid or misstated or something. No offense meant, only this is a bit of a misunderstanding I think... for all I know, maybe on my part. > In o

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 05:47 AM 6/25/02 -0700, John Brooking wrote: > As David says, the place that you can see the >"hidden" variables is in the page where the form is, >before you submit it. Got that now, thx John. > But wait, there's more! Even if your script *did* >check the referer, that's no protection e

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 06:50 AM 6/25/02 -0500, David T-G wrote: >When you have page1 loaded and you're about to press the submit button >to send it, and your secret var1, off to the script, don't; instead, >view the page source and you will see the form structure and the hidden >(note that "hidden" simply means "don

Re: passing variables in POST

2002-06-25 Thread Marty Landman
At 06:06 AM 6/25/02 -0500, David T-G wrote: >If the variables are in the page to be in the form to be >sent back via POST, then the user can find them, period. > >Try it yourself: set up something via POST and then surf to the page >and then "view source" or the equivalent in your browser (and if

Re: test.cgi hashing error

2002-06-23 Thread Marty Landman
At 07:37 AM 6/23/02 -0400, Kyle Babich wrote: >foreach $key(keys %pages) { > print "$key\n"; >} > >It says I need it for $key but no matter where I put the my it won't >stop giving me that error. Where in that does the my go? Kyle, this is a syntactic 'not-nicety' of Perl imho. You need

Re: Question about redirect

2002-06-23 Thread Marty Landman
At 07:59 PM 6/22/02 -0500, you wrote: >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. Erik, here is a complete program to redirect to a webpage - one I wrote that happens to c

Re: Need a way to begin learn Perl

2002-06-11 Thread Marty Landman
At 05:05 PM 6/10/02 -0700, drieux wrote: >on http://thecgibin.com/index/faqs.shtml?Perl's_Quote_Words_Feature >you make the assertion > > my @peppers = (qw(green red yellow black cayenne)); > >is this an old perlism since I have always done that as > > my @peppers = qw(green r

Re: Need a way to begin learn Perl

2002-06-10 Thread Marty Landman
>On Monday, June 10, 2002, at 03:40 , Ahmad wrote: > >>I would like to begin learning Perl, but I don't know where I begin learning >>it does anybody has any sugest??? You could take a peek at my tutorial site http://thecgibin.com. Also if you have a *nix box at home install Perl on there..

Re: Delete preceding zeroes

2002-04-28 Thread Marty Landman
At 03:40 PM 4/28/02 +0200, Rene Verharen wrote: >Where can I find some information on how to convert a alphanumeric string >to a number ? Perl does this automagically when you use the variable in numeric context. >My problem : > >$waarde = "0073"; # The value in $waarde comes from a file

Re[2]: Potential vulnerabilities from user-uploaded HTML code

2002-04-01 Thread Marty Landman
At 02:29 PM 4/1/02 +0200, Toomas Vendelin wrote: >First, your suggestion presumes that the "other end webmaster" has to >have at least an elementary understanding of Unix, permissions, and >other command-line stuff which is, true, quite simple, but can make a >FrontPage >weekend user hystericall

Re: Potential vulnerabilities from user-uploaded HTML code

2002-03-31 Thread Marty Landman
At 07:46 PM 3/31/02 +, you wrote: >I am writing a discussion board which can be used by several sites and which >is backed with one and the same database. To make it look at each of >participating >site like this site's discussion board, I have to allow site owners to upload >HTML header and

RE: Counter in Perl

2002-02-12 Thread Marty Landman
At 09:45 AM 2/12/02 -0500, Bob Showalter wrote: > > I made a counter in Perl and if a visitor refreshes the page, > > the counter > > increases. > > Can I modify the Perl script so that won't happend? > >Give him a cookie that expires after a while (a day maybe?). >If he sends the cookie, don't i

Re: Windows Text editor

2002-02-05 Thread Marty Landman
At 06:54 PM 2/5/02 +, Mo Holkar / UKG wrote: >At 13:34 05/02/02, Pat wrote: >>Can anyone recommend a decent Text editor for windows 98 that I can use for >>CGI scripts. Notepad seems to show the carriage returns all of a sudden and >>this is creating problems just trying to get scripts to run

RE: cgi in the middle of HTML page

2002-02-05 Thread Marty Landman
At 12:55 PM 2/5/02 -0500, Hanson, Robert wrote: >As far as using this method over HTML::Template >you need to be able to predict future expansion to your code (which may be >impossible), and as long as you won't need other features (or don't mind >rolling your own) then Marty's is as good as any

Re: cgi in the middle of HTML page

2002-02-05 Thread Marty Landman
At 11:09 AM 2/5/02 -0500, you wrote: >I want to have a web page where a CGI generated table appears in the >midst of a bunch of standard HTML. I already have the table data being >pulled from a database & generating a layout that looks good. however, >I would prefer not to generate the entire page

Re: Source for beginners help required

2002-01-28 Thread Marty Landman
At 07:03 PM 1/27/02 +, you wrote: >G'Day, > I'm looking to start in perl, and coming from assembly on pic chips, >this is all greek to me. Clive, I was a PL/1 and mainframe assembler programmer and know what you mean. Perl is tough to get started on, although I think they all are w/

Re: [CGI] Using SSI in a CGI program

2002-01-21 Thread Marty Landman
At 02:51 PM 1/21/02 -0800, Troy May wrote: >I have an HTML template which gets inserted into a CGI program. I need to >insert an SSI into it, but when the page is created it will not show up like >it does with a standard HTML file. Troy, this is because the server will not parse the page genera

Re: Perl Compiler

2002-01-03 Thread Marty Landman
At 02:27 PM 1/3/02 -0600, Jeremy Webster wrote: >If you must use perl, one thing you might try (although it's not a perfect >solution) is obfuscation. Jeremy, You reminded me of something I once ran into. When setting up the backend for a website a couple of years ago one of the things the own

Re: Creating a CGI menu

2001-12-12 Thread Marty Landman
At 03:05 PM 12/12/01 +, Gerry Jones wrote: >I want to create a menu/navigational section for a website I plan on >building, and I would like to know if there are any easy-to-use modules I >could use, or if there's another way. I wrote a web basing content management tool to do this called SIM

Re: almost there

2001-12-07 Thread Marty Landman
At 07:25 PM 12/7/01 -0500, Mark Jervis Sr. wrote: >I am having my code write to a webpage. In the webpage I need to be able >to change colors of the page and text. After you determine the colors, why not just code print qq||; >I would also like the code to be able to use custom colors such as

Re: almost there

2001-12-07 Thread Marty Landman
Mark, It's not clear to me what you're wanting to do from your posting. One comment though if you don't mind... you can avoid the backslash character and in this case make the code more legible by using Perl's 'custom quotes' feature. For example, " text=\"$textcolor\"" can be rewritten as