Re: server side includes using cgi

2003-10-10 Thread Todd Wade
Dale Young [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello all, I have been trying include a 'server side include' in a cgi script used to generate a html page with no success. I have redirected the output from the script to a static html file which displays correctly in my

Re: SQL question escaping quotes

2003-09-28 Thread Todd Wade
David Gilden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One final question here on my SQL -- PERL DBI the following is wrong -- it does not work ! $sql = qq|insert into $table_name values (null,now(),$email,$name,$comments);|; $sql = $dbh-quote($sql); ## this line $sth =

Re: Still Not sure if I agree with myself.

2003-09-15 Thread Todd Wade
Drieux [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sunday, Sep 14, 2003, at 14:00 US/Pacific, Todd W. wrote: [..] Beacuse of @ISA being lexically declared, it can't inherit from other modules. And remember, for a logical scope to be called a closure, you have to be

Re: OT: Streaming HTML

2003-06-06 Thread Todd Wade
Aldekein [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I am writing a Perl program. The goal of it is to process streaming HTML site (To describe - the document that you load never end - the new information is added to the end and sent to the client connected, the

Re: Memory shortage

2003-06-05 Thread Todd Wade
Camilo Gonzalez [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Okay, I'm still struggling here. My problem is I have a client who has a rather large tab delimited text file I am attempting to slurp up and place in a MySQL table. The file is almost 6 megs large but my ISP only

Re: persistent connection

2003-03-18 Thread Todd Wade
Uma Ramdoss [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] hai, i am writing a simple browser using LWP::UserAgent i dont know how to make persistent connection. i think LWP sends connection-close header by default. i used keepalive header but no use. can anyone help with

Re: shared cookies

2003-03-18 Thread Todd Wade
Wiggins D'Anconia [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hytham Shehab wrote: hi guys, i have multiple domain names - etc multiple sites - that i would like to share cookies inbetween, how can i - literally - do that, and is it enough to use HTTP::Cookies !?

Re: CGI.pm strange results

2003-03-03 Thread Todd Wade
Zentara [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sun, 2 Mar 2003 10:50:39 -0600, [EMAIL PROTECTED] (David Gilden) wrote: Hello, I am not understanding why I am getting strange data from the my CGI. Please point out what I have done wrong. Thanks Dave Gilden See

Re: checking if its a real number

2003-03-03 Thread Todd Wade
Casey West [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It was Wednesday, February 26, 2003 when Robert Wideman took the soap box, saying: : I have a cgi that need to accept only numeric values. ie +ve or -ve : real numbers. : Is there a quick and easy way to check this. I

Re: How do embed javascript

2003-02-27 Thread Todd Wade
Tom McKellips [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When I run it on the command line I get no errors. But Still the Javascript fails to execute in the browser if it is generated from PERL. If I put the very same javascript in it's own html page and call it with a browser

Re: Possibly OT, but CGI related.

2003-01-27 Thread Todd Wade
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Thu, 23 Jan 2003 03:41:30 -0800 (PST), Will [EMAIL PROTECTED] wrote: Not about perl, but CGI... Does anyone know why it would be more secure not to allow

Re: pop-up window with database access

2003-01-27 Thread Todd Wade
Zentara [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On Mon, 30 Sep 2002 11:47:37 -0500, [EMAIL PROTECTED] (Scot Robnett) wrote: Define a lot of people. I just did a quick google search for javascript statistics, and most of the surveys show somewhere

Re: IF statments

2002-12-24 Thread Todd Wade
David Gilden [EMAIL PROTECTED] wrote in message news:r01050400-1023-E78ABED6164811D78F0D0003935B6868@[192.168.1.5]... Holiday greetings, I would like to be able to test for either of the two secret words but it seems to fail, what am I missing? Thanks Dave #!/usr/bin/perl use CGI

Re: CGI scripts permissions

2002-12-24 Thread Todd Wade
Octavian Rasnita [EMAIL PROTECTED] wrote in message 002901c2abd3$c17cdcb0$[EMAIL PROTECTED]">news:002901c2abd3$c17cdcb0$[EMAIL PROTECTED]... Yes I know these, but ... it seems there is no solution. 1. The web server is not in the same group with me, and if it will be made to stay in the same

Re: Perl / CGI - User Authentication ...

2002-10-09 Thread Todd Wade
Kevin wrote: Hello, I am in the process of developing a CGI application that requires user authentication. In the past I have developed a simple login screen where I validated the user and forwarded the request based on the result. I would like to progress to the next level and pass the

Re: Cannot validate dynamic html with W3C because of missing Character Encoding

2002-10-05 Thread Todd Wade
Todd Wade wrote: Richard wrote: Hello I wrote a script that creates dynamic html. I validated the resulting html code with W3C and it couldn't validate it because it didn't detect the character encoding. I added the meta information to the header with the -meta argument: snip

Re: Here is that problem with the LWP module

2002-10-04 Thread Todd Wade
Zentara wrote: On Fri, 4 Oct 2002 06:19:55 +0200, [EMAIL PROTECTED] (Octavian Rasnita) wrote: Hi all, I've tried a sinple test script for testing the LWP module and I've received the following result: 501Protocol scheme 'http' is not supported Here are a couple of examples. You don't need

Re: Cannot validate dynamic html with W3C because of missing Character Encoding

2002-10-04 Thread Todd Wade
Richard wrote: Hello I wrote a script that creates dynamic html. I validated the resulting html code with W3C and it couldn't validate it because it didn't detect the character encoding. I added the meta information to the header with the -meta argument: $q-start_html( -dtd =

Re: css attributes in CGI

2002-09-28 Thread Todd Wade
Janek Schleicher wrote: Jimmy George wrote at Fri, 27 Sep 2002 00:36:42 +0200: When we use commands such as $q-p(some line of text); when doing prints, is there any way of giving the output attributes such as we can with css descriptors? e.g. $q-p({-style = 'color: red;

Re: SSI calls

2002-08-31 Thread Todd Wade
Jimmy George [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello World Is the line print DATAFILE (The file was recorded at !--#config timefmt=%d%b%y at %r--); a valid cgi line for a string like this, I would use single quotes: print DATAFILE 'The

Re: Perl Programmers Needed.

2002-08-27 Thread Todd Wade
Jeremy M. [EMAIL PROTECTED] wrote in message 000401c24dfb$1124ce30$0302a3c0@mithril">news:000401c24dfb$1124ce30$0302a3c0@mithril... Hello folks, I'm not entirely sure this is the correct forum to post this in, but in all reality there isn't exactly an overwhelming community of Perl

Re: Online installer

2002-08-19 Thread Todd Wade
Soheil Shaghaghi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Dear Connie, Hello and thanks again :) I just wanted to show you and everyone else who is interested in this subject a much better example: http://www.iwebsupport.com/cgi-bin/dsx.cgi?app=Installer

Re: Network Programming

2002-08-11 Thread Todd Wade
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello there. Do you know where can I find a good Perl Network Programming Tutorial?? Thank you. Network Programming with Perl, L. Stein. http://www.amazon.com/exec/obidos/ASIN/0201615711/qid=1029118782/sr=1-1/ref=

Re: Odd boxes - the solution

2002-07-08 Thread Todd Wade
Henk Van Ess [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all, My provider gave me the solution. I had to install: pkg_add -r unix2dos where unix2dos *.cgi strips the boxes.. Ty all for the input. Also, if you use the proper transfer setting (i.e.

Re: Including SSI in a script

2002-07-08 Thread Todd Wade
Octavian Rasnita [EMAIL PROTECTED] wrote in message 00cc01c22495$df0f63d0$[EMAIL PROTECTED]">news:00cc01c22495$df0f63d0$[EMAIL PROTECTED]... Hi all, I want to make a Perl script that generates a web page and prints it on the screen. I want to include an SSI statement in that page. If I

Re: What could go wrong with closing an FH ?

2002-07-06 Thread Todd Wade
David Vd Geer Inhuur Tbv Iplib [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi All, After a couple of emails about opening a file with a lower case FH, I have a question. I see everyone opening a file with an or die statement, what I can fully understand.

Re: Form.pm

2002-07-03 Thread Todd Wade
[EMAIL PROTECTED] wrote in message 00d301c222b6$440166d0$d381f6cc@david">news:00d301c222b6$440166d0$d381f6cc@david... I appreciate your feedback. The reason I was frustrated with Todd is because it was strictly criticism. Basically the tone was Your wrong, and you shouldn't be making

Re: Form.pm

2002-07-02 Thread Todd Wade
[EMAIL PROTECTED] wrote: sub parse_form_input($){ my $input = shift; I told you already. my @variables = split(/\/, $input); this is wrong!!! Todd W. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Form.pm

2002-07-02 Thread Todd Wade
Ovid [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... --- Todd Wade [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: sub parse_form_input($){ my $input = shift; I told you already. my @variables = split(/\/, $input); this

Templates v/s CGI.pm [WAS:] Displaying Problems

2002-06-26 Thread Todd Wade
Kyle Babich [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... ... bunch of code snipped here . -bgcolor = \#00, -align = center}, Font({ -face = Verdana, Arial, Times New Roman, -size = 4, -color = \#FF}, IMAP.cc ) ),),),),),),),), ^^^ this

Re: exit from subs // creating frames

2002-06-20 Thread Todd Wade
Root wrote: if ($path_info =~/menu/) { menu; }; if ($path_info =~/top/) { top; }; if ($path_info =~/main/) { main; }; validate $path_info to make sure it has an acceptable subroutine name, then replace the above stuff with: $path_info(); As another tip, you shouldnt ever print()

Re: user name

2002-06-13 Thread Todd Wade
Spider Man wrote: I am writing a web CGI form for intranet network use. Everything is NT based and I need some secure verification. I can grab the information of what machine has been used to submit the form. However, is there any way I can find out the username used to log into the

Re: Insertion of table causes syntax error-message

2002-05-31 Thread Todd Wade
Richard Krause [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all (...) #td(['Broccoli' , 'no', 'no', 'yes']), #td(['Onions' , 'yes','yes', 'yes']) #] #) missing a comma ^

Re: Getting content of a configuration file

2002-05-31 Thread Todd Wade
Sven [EMAIL PROTECTED] wrote in message 027901c204e8$fa475da0$14e307d5@brian">news:027901c204e8$fa475da0$14e307d5@brian... ... $context = $q-param(context); require conf.txt; open(READ, conf.txt) or die Error opening file: conf.txt, Errorcode: $!\n; close(READ); I dont understand the

Re: cgi script that takes in data then runs script on different host

2002-05-28 Thread Todd Wade
Simon K. Chan [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... cgi script on host 1pass $name to host 2 script on host 2 # get $name --- print hi there $name!\n; Somewhere at the top of scriptOnHost1.cgi say:

Re: CGI and frames

2002-05-14 Thread Todd Wade
Sven Bentlage [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... frameset rows=80,* frameborder=NO border=0 framespacing=0 frame src=path/to/file name=topFrame scrolling=NO noresize frame src=path/to/file name=mainFrame /frameset make the src attribute read

Re: Multiple emails with Sendmail

2002-05-12 Thread Todd Wade
Troy May [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm trying to figure out how to send emails through Sendmail with an email list that could change at any given time. use Mail::BulkMail from CPAN:

Re: Using strict with DBI

2002-04-30 Thread Todd Wade
Rob Roudebush [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've seemed to have narrowed down the problem to $sth variable, I guess I can't declare this as a private variable because it prepares it and needs to have it at least local or global to access it?

Re: do not print blank fields

2002-04-29 Thread Todd Wade
Debbie McNerney [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If all you need is to see if the field is empty, wrap the prints in if() conditionals: if ( $query-param('CustName') ) { print OUT (\nCustomer Name: ); } if ( $query-param('CustName') ) { print OUT

Re: Write permissions and other rights

2002-04-23 Thread Todd Wade
Drieux [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Besides I still feel squishy about the fact that I can run perl modules as 644 - which just seems unNatural to moi The executeable bit is only necessary so your shell will use the first line in the

Re: popup_menu default

2002-04-22 Thread Todd Wade
Todd Wade [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... - Original Message - From: Jack Daly [EMAIL PROTECTED] To: Todd Wade [EMAIL PROTECTED] Sent: Sunday, April 21, 2002 11:51 PM Subject: Re: popup_menu default On Sun, 21 Apr 2002, Todd Wa

Re: proxy server

2002-04-22 Thread Todd Wade
Conan Chai [EMAIL PROTECTED] wrote in message 003301c1ea03$29edb410$0164a8c0@user1">news:003301c1ea03$29edb410$0164a8c0@user1... hi, how do i read in the request from a browser? Go get the Perl Cookbook. Theres a whole section on being a TCP server. Its a little too complicated to discuss here

Re: Write permissions and other rights

2002-04-21 Thread Todd Wade
Octavian Rasnita [EMAIL PROTECTED] wrote in message 003d01c1e8db$f6df0f60$[EMAIL PROTECTED]">news:003d01c1e8db$f6df0f60$[EMAIL PROTECTED]... Hi all, Please tell me how should I set the rights for some files and folders in my web page: First of all, this has nothing to do with perl, but

Re: popup_menu default

2002-04-21 Thread Todd Wade
Jack Daly [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can some kind soul take a moment to answer a question? I want to have a default value in popup menu, right now I have the menu defaulting to the first value in the list. Is there any non-object

Re: Perl CGI with ISP - advice?

2002-04-19 Thread Todd Wade
Zentara [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... On Tue, 16 Apr 2002 13:17:59 -0700 (PDT), [EMAIL PROTECTED] (John Brooking) wrote: For instance, I wanted to use Crypt::RC4 on a remote server. Using the above unshift, I upload Crypt::RC4 but it wouldn't work until I

Re: log-in/out w/o cookies

2002-04-15 Thread Todd Wade
Teresa Raymond [EMAIL PROTECTED] wrote in message news:p05100301b8de2cf961a1@[67.36.181.234]... What I've done is: 1) have login page w/ hidden input name=formname w/ some value leads to 2) cgi prog that cks that formname eq some value and the username password1 and password2 first

Re: Dealing with arrays ??? / Do I need to lock a file???

2002-04-06 Thread Todd Wade
Rafael Cotta [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Question #1: How can I get the value of the key, so I can have in output file something like key = value instead of only value, as the code above does? for my $key ( keys(%Form) ) { print FHD

Re: What a CGI.pm state I'm in...

2002-04-06 Thread Todd Wade
[EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... 1) Basically I have n + (5 or 6) texstfields to fill, initially from a file which works fine. Then the user makes changes and submits changes to the same script (don't want to use 2 scripts ideally), which