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) ) { prin

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 iden

Re: Hiding the real location of a file?

2002-04-07 Thread Todd Wade
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 002e01c1dd70$6800e7d0$[EMAIL PROTECTED]">news:002e01c1dd70$6800e7d0$[EMAIL PROTECTED]... > If a user will click to download, Internet Explorer ask the user if she > wants to open or save the file from the real server. > I would like to make

Re: log-in/out w/o cookies

2002-04-14 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

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 > un

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, b

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: 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

Re: A super huge form.

2002-04-22 Thread Todd Wade
"Connie Chan" <[EMAIL PROTECTED]> wrote in message 01c1e869$61296f00$de7566da@omega">news:01c1e869$61296f00$de7566da@omega... >Anyway, I don't want to use cgi.pm. The first time a user agent uses ``;'' instead of ``&'' to seperate the name=value pairs youll wish you did trwww -- To

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

Re: FILE Transfer (FTP) using PERL

2002-04-22 Thread Todd Wade
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > Input the Filename You Wish To Transfer > > > read: perldoc -M CGI Uploading via a web browser is via http. The file is included with the request to the server. FTP has nothing to d

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

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') ) { pri

Re: do not print blank fields

2002-04-29 Thread Todd Wade
"Todd Wade" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > if ( $query->param( $fieldName ) { # this one is not empty this should read: if ( $query->param( $fieldName ) ) { # this one is not empty forgot a paren To

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 acces

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: http://search.cpan.org/doc/JIMT/Mail-Bulkmail-2.05

Re: CGI and frames

2002-05-14 Thread Todd Wade
"Sven Bentlage" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... make the src attribute read something like: "path/to/file?section=topFrame" and "path/to/file?section=mainFrame or whatever. Then have the cgi program call those subs based on the value of

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

Re: Insertion of table causes syntax error-message

2002-05-30 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

Re: Getting content of a configuration file

2002-05-30 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 un

Re: Uploading files timeout

2002-06-10 Thread Todd Wade
"Octavian Rasnita" <[EMAIL PROTECTED]> wrote in message 00ff01c210e4$af46dd00$[EMAIL PROTECTED]">news:00ff01c210e4$af46dd00$[EMAIL PROTECTED]... > Hi all, > > I've made a form for uploading files and I want to let the visitors to > upload large files. > I've heard that it can appear timeouts when

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 ma

Re: exit from subs // creating frames

2002-06-20 Thread Todd Wade
Root wrote: > if ($path_info =~/menu/) { > &menu; > }; > if ($path_info =~/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 pr

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" >

CGI.pm v/s roll-your-own [WAS:] Displaying Problems

2002-06-26 Thread Todd Wade
<[EMAIL PROTECTED]> wrote in message 008d01c21c73$aa978a30$d381f6cc@david">news:008d01c21c73$aa978a30$d381f6cc@david... . snip > I'm sure I'll get lots of hate mail from CGI.pm die hard's, but my other choice is to just not Not trying to post hate mail, just reasoning on the subject. >

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: Including External Pages

2002-07-02 Thread Todd Wade
[EMAIL PROTECTED] wrote: > open(FH, " for write, >> for > append local $/ = undef; # slurp mode (allow for shoving the whole file > into a scalar) > my $faq = ; # slurp the whole file into this scalar. > close(FH); > open(FH, $file) or die("open $file: $!"); print(); # print() takes a list. D

Re: Perl/CGI and Databases (where to begin?)

2002-07-02 Thread Todd Wade
Roger Spears wrote: > I'm working on a project that uses Perl/CGI to work with Databases. I > have done this before with basic txt files and then I use 1000 lines of > code to make them appear relational. What would be an easier way to > achieve this? SQL? > > Can you use Perl/CGI to interact

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; > >

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 mak

Re: Including External Pages

2002-07-03 Thread Todd Wade
the docs that show modification of $/ in action have the corresponding code wrapped in a block, i.e. { local $/ = undef(); $_ = }. Quick quiz: can anyone explain why? Todd W. > > - Original Message - > From: "Todd Wade" <[EMAIL PROTE

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

Re: Odd boxes after uploading

2002-07-08 Thread Todd Wade
"Henk Van Ess" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Dear all > > I just uploaded the following .cgi to my server: > > #!/usr/bin/perl > print "Content-type:text/html\n\n"; > print "Show me the monkey"; #this line prints the sentence "Show me the monk

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 setti

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. >

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/r

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: 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 prog

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 "); > > a valid cgi line for a string like this, I would use single quotes: print DATAFILE 'The file was recorded at '

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 => '

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. Y

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: 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 inform

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 pa

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 >

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 th

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 n

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

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 br

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 > >Da

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 ch

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 w

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::Cooki

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: help with print MAIL

2003-06-05 Thread Todd Wade
"Catriona Wordsworth" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi guys, > > Needing a little assistance with some issues I am having trying to get my script to print variable details into and email generated by the script. > > so far the script generates the email with (sendma

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: 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 > >

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); ## thi

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