>
> 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
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
>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 {
>
> 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
>
> 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
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
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
> 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
> 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
> 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
> 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
>
> > 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.
> $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
>
> 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
>
> > 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/
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
> 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;
>
>
>
> 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+
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.
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://
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
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
>
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
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:
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
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
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
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
>
>
>
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
> 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
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
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,
> 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.
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
>
> 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
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
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
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.
>
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];
> 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
>
> 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
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
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
>
>
>
>
> ***
43 matches
Mail list logo