RE: Active 'back' buttons

2004-03-29 Thread Kipp, James
> > Hi guys. > > What's the 'usual' way (if there is one) of implementing an > 'active' back > button (which does the equivalent of the browser's back button but is > implemented in CGI code)? > It is usually done with javascript and pretty easy to do. Although you may already be aware of this

RE: Retrieving cookie expiration date

2003-07-16 Thread Kipp, James
read 'perldoc cgi', go to the http cookies section. you can retrieve a cookie into a hash which will include the exp date. HTH Jim -Original Message- From: Sawsan Sarandah [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 16, 2003 12:44 AM To: [EMAIL PROTECTED] Subject: Retrieving cookie e

RE: Trying to block out BGCOLOR

2003-03-20 Thread Kipp, James
>I'm saying it could be bgcolor="COLOR" or bgcolor=COLOR Yes I realize. I believe drieux's solution, or an adaptation of it, is what you need I would of course go with say: # # sub un_colour {

RE: Trying to block out BGCOLOR

2003-03-20 Thread Kipp, James
> > I'm making something, and need to block out BGCOLOR > attribute. The problem > is, the BGCOLOR could be with or without quotation marks. > This is the code I > used: > > $article =~ s/ bgcolor=("?)(.*?)("?)//gi > so you are saying it could be bgcolor or "bgcolor" ? how about something

RE: Problem with regular expressions!!!

2003-03-18 Thread Kipp, James
> > This is the code. > # > $file_completename =~ /(.*?)\.(.*)/; > if ($2 eq $extension]) { > #DO SOMETHING!!! > } > # did u turn on warnings and use strict ?? did you catch the ] at the end of $extension? i tried this on

RE: Help with File::Find

2003-03-07 Thread Kipp, James
Please ignore this post. This was meant for the perl-beginners list. My apologies. -- > -Original Message- > From: Kipp, James > Sent: Friday, March 07, 2003 1:57 PM > To: [EMAIL PROTECTED] > Subject: Help with File::Find > -- To unsubscribe, e-mail: [EMAIL PROTECT

Help with File::Find

2003-03-07 Thread Kipp, James
Hi Is there a way to get File::Find to TOTALLY ignore a directory?? See comments in code for what I mean: find ( \&wanted, 'f:/users/user1'); sub wanted { ## HERE: even though it returns when it sees a dir called # with Profile, it comes right back to where it left of, in other

RE: IP Conversion

2003-02-21 Thread Kipp, James
> How do I convert from Domain Name to IP address and vice versa. > Mick Spooner read up on sockets. try something like this: $ip = inet_ntoa( scalar gethostbyname($hostname) ); $hostname = gethostbyaddr( inet_aton( "127.0.0.1" ), AF_INET ); -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: cookies

2003-02-19 Thread Kipp, James
> Hello all, > > Can anyone point me to some good doc on how to > create/read/delete cookies? > > Thanks! > Hi Stephen I am new to cookies as well and recently posted a question like this. Here is what I found helpful: Here's a good overview: http://wp.netscape.com/newsref/std/cookie_spec.html

Help with Cookies

2003-02-07 Thread Kipp, James
> All am I am trying to do now is have a user enter his/her > name in a form and have that saved to a cookie, so when they > return, they will get something like " Your juser, please > proceed" . I took the example here: > http://stein.cshl.org/WWW/CGI/examples/cookie.cgi > > Below is the co

RE: Cookie INfo

2003-02-06 Thread Kipp, James
> All am I am trying to do now is have a user enter his/her > name in a form and have that saved to a cookie, so when they > return, they will get something like " Your juser, please > proceed" . I took the example here: > http://stein.cshl.org/WWW/CGI/examples/cookie.cgi > > Below is the code

RE: Cookie INfo

2003-02-06 Thread Kipp, James
> > > Do you have a specific question? it seems: > > > > http://search.cpan.org/author/LDS/CGI.pm-2.89/CGI.pm#HTTP_COOKIES > > > > Covers things pretty extensively, short of looking at the > > source to see how things are implemented rather than just the > > API. Really very little to them.

RE: Using variable to another script

2003-02-06 Thread Kipp, James
> $username = param('username'); > $lastname = param('lastname'); > > my question is, how can i use that two variable to another script > open by this command: > > system('sudo', '-u', 'www', '/path/to/anotherscript.pl'); > > Is that possible? You could redirect to another url: print $q->redi

RE: Cookie INfo

2003-02-06 Thread Kipp, James
> > You also might want some background on the HTTP header field > for Set-Cookie - sort of behind the scenes of what the CGI > module does. > > I'd suggest some research for "RFC 2109" and "http > set-cookie". I found this helpful to understand the simple > cookie header-field syntax, separa

RE: Cookie INfo

2003-02-05 Thread Kipp, James
> > > Can anyone point me to some good docs for using cookies > with Perl/CGI. I can > > only seem to find docs using Javascript. I have already > read the cgi.pm > > docs, but looking for something with more info. > > > > Do you have a specific question? it seems: > > http://search.cpan.org/

Cookie INfo

2003-02-04 Thread Kipp, James
Can anyone point me to some good docs for using cookies with Perl/CGI. I can only seem to find docs using Javascript. I have already read the cgi.pm docs, but looking for something with more info. Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTEC

RE: Ping Results

2003-01-30 Thread Kipp, James
> trying to put together a simple 'ping' display via the > browser... and not having > any luck... how does one get the results of a ping to diplay > the results properly ?? > > Sample code: > === > #!/usr/bin/perl > use CGI qw(:standard); > use strict; > >

RE: 2 Code Interpretation ?s

2002-12-17 Thread Kipp, James
> > 2 Questions here... > > 1.) I am self taught, so I dont know all the formal > details of Perl coding, but every now and then I run > across code that reads like alphabet soup... for > instance, lines like (taken at random): > > The conditional here... > > if ($cgi->param('forum') =~ /^(\d+

Pass an NT IIS env variable to apache UNIX cgi ??

2002-12-11 Thread Kipp, James
hopefully i can explain this correctly: I have a cgi script that users from NT workstations will access. the script runs on IIS server, so I am able to grab the remote user name, like this: (my $user = lc($ENV{'REMOTE_USER'}) ) =~ s/.*?\\//; $user will match the users account name on a UNIX server.

RE: how to hide form parameter from displayed in browser ?

2002-12-09 Thread Kipp, James
try using the POST method, instead of GET ? -Original Message- From: Admin-Stress [mailto:[EMAIL PROTECTED]] Sent: Monday, December 09, 2002 8:16 AM To: perl cgi Subject: how to hide form parameter from displayed in browser ? I made a simple html form to input a password field : http://

RE: Printing in while loops

2002-10-11 Thread Kipp, James
I am not quite sure what you want to do here, but here is what i see: the scalar your assining to the fh is being overwritten at each iteration $tmp = ; all you need to do is open each file, and operate on the $_ var, you don't need to assign the FH to a variable (unless you want to slurp it in

RE: What am I missing or doing wrong?

2002-09-30 Thread Kipp, James
eerPort => 80, Proto=> 'tcp') or die "Cannot connect to the server.\n"; $socket->autoflush(1) print $socket "GET /index.htm HTTP/1.0\n\n"; while(<$socket>){ print } close $socket; > -Original Message- > From: Kipp, James >

RE: What am I missing or doing wrong?

2002-09-30 Thread Kipp, James
seems to work fine for me, but i tested it on a simple web page. Try removing the line $socket->autoflush(1); > -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 11:08 AM > To: [EMAIL PROTECTED] > Subject: What am I missing or doing

RE: pop-up window with database access

2002-09-27 Thread Kipp, James
First work on your back end DB (mySql). Then you probably want to install the DBI module. The front end can be done with HTML and CGI, maybe javascript. Break this project into pieces and then post questions to this list and the DBI and CGI list as you progress. I would break it down like this:

RE: Rounding a number

2002-09-12 Thread Kipp, James
woops that won't work :-( does perl have a ceil function? > -Original Message- > From: Kipp, James [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 12, 2002 11:58 AM > To: 'Octavian Rasnita'; [EMAIL PROTECTED] > Subject: RE: Rounding a number > &g

RE: Rounding a number

2002-09-12 Thread Kipp, James
do you mean ro round up to the next num, if so: $num = 1.2; $roundup = int($num) +1; > -Original Message- > From: Octavian Rasnita [mailto:[EMAIL PROTECTED]] > Sent: Thursday, September 12, 2002 4:54 AM > To: [EMAIL PROTECTED] > Subject: Rounding a number > > > Hi all, > > I would like

RE: missing the boat on s///

2002-08-28 Thread Kipp, James
what are you trying to do ? > -Original Message- > From: Jerry Preston [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, August 28, 2002 12:05 PM > To: Beginners CGI Perl > Subject: missing the boat on s/// > > > Hi!, > > I know this is simple, but what am I doing wrong? > > $_ = "Who is

RE: Question about dates

2002-08-27 Thread Kipp, James
here's a good link that i used to format Dates: http://www-db.stanford.edu/~ullman/fcdb/oracle/or-time.html > -Original Message- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Monday, August 26, 2002 7:20 PM > To: [EMAIL PROTECTED] > Subject: RE: Question about dates > > >

RE: database update

2002-08-15 Thread Kipp, James
use the quote() method or placeholders. both are described in 'perldoc DBI' > -Original Message- > From: Rob [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 15, 2002 2:24 PM > To: [EMAIL PROTECTED] > Subject: database update > > > The following line works from a script run from the

RE: 7xx's et al

2002-08-14 Thread Kipp, James
> Hi David and thanks > > True 755 is required for both read and execute by the group and world. > > But all the directories and html code in my home site are all 744. I > have the cgi-bin folder on 711 as that I thought (under Apache anyway) > was supposedly only accessible by the owner but th

RE: Checking Form data

2002-08-01 Thread Kipp, James
9:42 PM > To: Kipp, James > Cc: '[EMAIL PROTECTED]' > Subject: Re: Checking Form data > > > Kipp, James wrote: > > > What is the best way to validate form data. I have a form > which the user > > enters dates like '08/01/2002'. Wh

RE: Checking Form data

2002-08-01 Thread Kipp, James
yes, there a number of DOS and exploits using javascript. not sure how serious. i know alot of companies filter out active X and VBscript (mine included) > -Original Message- > From: Jim Lundeen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 4:49 PM > To: Kipp,

RE: Checking Form data

2002-07-31 Thread Kipp, James
> Sent: Wednesday, July 31, 2002 1:20 PM > To: Kipp, James > Cc: '[EMAIL PROTECTED]' > Subject: Re: Checking Form data > > > Although Perl/CPAN makes some good form handling modules > available I think that the more client side data checking you > can do the better.

RE: Multiple Selects to Perl Script

2002-07-31 Thread Kipp, James
are you sure all the values are associated with the name 'type' ? > -Original Message- > From: Margaret [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 31, 2002 9:27 AM > To: [EMAIL PROTECTED] > Subject: Multiple Selects to Perl Script > > > Hi > > I am having a most frustrating pr

RE: Checking Form data

2002-07-30 Thread Kipp, James
> > Answering what I think you're asking: Client-side validation > (javascript) is fine for avoiding an > unnecessary trip to the server, but it's easily avoided -- > you can just turn javascript off. > Therefore, server-side validation is mandatory lest you open > up security holes. thanks

Checking Form data

2002-07-30 Thread Kipp, James
What is the best way to validate form data. I have a form which the user enters dates like '08/01/2002'. What is the best way to make sure this format is entered. Should i use javascript here or regex? Thanks -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: What's wrong with this code?

2002-07-29 Thread Kipp, James
you never executed the SQL statment $sth->execute(); > -Original Message- > From: Soheil Shaghaghi [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 27, 2002 2:05 AM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: What's wrong with this code? > > > Hi everyone, > Can anyone please

RE: Script for making declarations

2002-07-19 Thread Kipp, James
one idea is to run the script with strict and save the error report and the line numbers. the error msg should list all the variable that need to be declared, then you could write a regex to go to each one and insert a my in front. or you can use vi to make the substitutions. just an thought. >

RE: trying to find direcotries

2002-07-08 Thread Kipp, James
USE File::Find either that or you have to mess around with recursion which can be quite tricky File::Find does the recursion for you. docs are easy to follow > -Original Message- > From: LinkS On WeB [mailto:[EMAIL PROTECTED]] > Sent: Sunday, July 07, 2002 2:46 PM > To: [EMAIL PROTECTED];

RE: E-mail with the -T switch

2001-10-11 Thread Kipp, James
> open (MAIL, "|-", "$mailprog" , "-t"); try changing $mailprog to "/usr/sbin/sendmail" >> > Can't use an undefined value as filehandle reference at > /home/rob/cgi-bin/completeOrder.cgi line 9. did you try : or you can do at the top of script: $ENV{PATH} = 'bin:/usr/bin'; # restrict the

RE: E-mail with the -T switch

2001-10-11 Thread Kipp, James
> > my($name) = "John"; > my($mailprog) = '/usr/sbin/sendmail'; > my($recipient) = '[EMAIL PROTECTED]'; > open (MAIL, "|$mailprog -t"); #The script fails here Try this: open (MAIL, "|-", "$mailprog" , "-t"); #avoids using the shell or you can do at the top of script: $ENV{PATH} = 'bin:/usr/bi

RE: Fuck This..

2001-10-10 Thread Kipp, James
well you are not offending me, but you do look like a jack-ass now > -Original Message- > From: Inspirational Michael [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, October 10, 2001 7:02 AM > To: [EMAIL PROTECTED] > Subject: Fuck This.. > > > Sorry who I offend, but I am now working to g

RE: FUCK THE FUCKUNG MAILBOT!!!!!!!!! I WANT OUT OF THISFUCKING LIST !!!!!!!!!!!!!!!!

2001-07-10 Thread Kipp, James
unsuscribe IDIOT > -Original Message- > From: Hendrik Bämpfer [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 10, 2001 10:09 AM > To: '[EMAIL PROTECTED]' > Subject: FUCK THE FUCKUNG MAILBOT! I WANT OUT OF THIS FUCKING > LIST > > > > > ***