RE: Mail script not working for Netscape (was" real beginner help needed")

2002-05-23 Thread David Gray
> This is the piece of code that is giving me the problem I > believe. It is the one that is supposed to check to make > sure that a user enters a valid email address. When I > comment it out, it works in both IE and NN. > > if ($FORM{'email'} !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) { > dienice("P

Re: real beginner help needed

2002-05-23 Thread Tagore Smith
Andrew Hughes wrote: > I need help. I inherited this script that adds people to a text file for > our mailing list. It works in Explorer. However, it does not work in > Netscape. Valid email addresses are blocked and the subroutine dienice is > called in Netscape. It is pretty short and sim

Re: How to use crypt ??

2002-05-23 Thread Pablo A. Castrillo
Hi David You can create a random key to encrypt a password: my $key = join '', ('.','/',0..9,'A'..'Z','a'..'z')[rand 64, rand 64]; (Took this from the book "Beginning Perl" by Simon Cozens) Then you encrypt the password:

RE: Mail script not working for Netscape (was" real beginner help needed")

2002-05-23 Thread Hughes, Andrew
This is the piece of code that is giving me the problem I believe. It is the one that is supposed to check to make sure that a user enters a valid email address. When I comment it out, it works in both IE and NN. if ($FORM{'email'} !~ /[\w\-]+\@[\w\-]+\.[\w\-]+/) { dienice("Please enter a vali

Re: Mail script not working for Netscape (was" real beginner help needed")

2002-05-23 Thread John Brooking
Can you post some of the relevant code? (If it's long, please consider putting it up as an HTML page and just sending us the URL.) Not that I'm promising I personally will have time to look at it or know the answer... --- "Hughes, Andrew" <[EMAIL PROTECTED]> wrote: > I need help. I inherited th

Re: CGI/Perl-usertracking

2002-05-23 Thread John Brooking
I'm sorry, I don't understand your question very well. Can you give an example? By "standard-Perl only", do you mean only using modules that come with Perl? --- Sven <[EMAIL PROTECTED]> wrote: > Hello all! > > Can anyone give me a hint what I should do? > > I want to realize a search in the re

RE: Opening Filehandles under taint check

2002-05-23 Thread Ovid
--- Camilo Gonzalez <[EMAIL PROTECTED]> wrote: > Ovid, > > You're a god (or at least an erotic poet from Ancient Rome). That worked > perfectly. I feel like such an idiot. Thanks for pointing out the obvious. Camilo, Heh :) At least *some* people appreciate the name "Ovid". Don't feel like an

How to use crypt ??

2002-05-23 Thread David vd Geer Inhuur tbv IPlib
Hi, Right now I am a little lost myself. Trying to use crypt() to encrypt a given password. I know how to compare a given password with an encrypted one, but to encrypt one myself and save it, doesn't work for me for some reason. You would say, Ah of course forgotten to give your encryption key

Re: update query

2002-05-23 Thread Sven Bentlage
thx for the tip, but I don't have access to the error log (my ISP doesn't allow it) just found the problem... there was a typo some 75 lines above... sorry for bothering you all On Thursday, May 23, 2002, at 04:58 PM, Pablo A. Castrillo wrote: > Sven: > Have you checked your error log? > I'm w

Re: update query

2002-05-23 Thread Pablo A. Castrillo
Sven: Have you checked your error log? I'm working with PostgreSQL but when I get no errors and no rows updated I always find an error message in the log file (/var/log/httpd/error_log in my RH 7.1 box). Messages look like: DBD::Pg::db do failed: ERROR: Bad boolean external

RE: Opening Filehandles under taint check

2002-05-23 Thread Camilo Gonzalez
Ovid, You're a god (or at least an erotic poet from Ancient Rome). That worked perfectly. I feel like such an idiot. Thanks for pointing out the obvious. How are you on scoping issues? -Original Message- From: Ovid [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 6:07 PM To: Cami

Re: Please use meaningful subjects

2002-05-23 Thread Kevin Meltzer
Or, to restate this, read the list FAQ :) http://learn.perl.org/beginners-cgi-faq Cheers, Kevin On Thu, May 23, 2002 at 08:25:53AM -0500, Robert Becker ([EMAIL PROTECTED]) said something similar to: > Please use meaningful subjects for your questions! Subjects like > 'Another newbie question' a

Please use meaningful subjects

2002-05-23 Thread Robert Becker
Please use meaningful subjects for your questions! Subjects like 'Another newbie question' and 'Yet another problem' are not meaningful. (This problem seems to crop up every couple months:) ) Thank You Robert Becker [EMAIL PROTECTED] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

real beginner help needed

2002-05-23 Thread Hughes, Andrew
I need help. I inherited this script that adds people to a text file for our mailing list. It works in Explorer. However, it does not work in Netscape. Valid email addresses are blocked and the subroutine dienice is called in Netscape. It is pretty short and simple. I do not have time to rew

Re: DBI/update

2002-05-23 Thread Sven Bentlage
sorry, didn't mention it. the assignment for the variables has been done above, in the main script. On Thursday, May 23, 2002, at 02:13 PM, Felix Geerinckx wrote: > on Thu, 23 May 2002 11:08:22 GMT, [EMAIL PROTECTED] (Sven > Bentlage) wrote: > >> Hi everyone! >> I'm getting desperate. Can't find

Re: update query

2002-05-23 Thread Felix Geerinckx
on Thu, 23 May 2002 11:33:37 GMT, [EMAIL PROTECTED] (Sven Bentlage) wrote: >> Secondly: Have you tried to "print" out the actually query to see >> what it contains? > > not sure how to do that... Instead of $dbh->do("the sql-query"); write $sql = "the sql-query";

Re: DBI/update

2002-05-23 Thread Felix Geerinckx
on Thu, 23 May 2002 11:08:22 GMT, [EMAIL PROTECTED] (Sven Bentlage) wrote: > Hi everyone! > I'm getting desperate. Can't find the error in the snibblet of > code below...to me everything seems to be ok (except bad style > etc), but the update of the mysql database does not work altought > the s

Re: update query

2002-05-23 Thread Sven Bentlage
On Thursday, May 23, 2002, at 01:22 PM, Svensson, B.A.T. (HKG) wrote: > First of all: which error do you get? > Don't get any error at all. the next sub (see below) prints out the correct values fetched from the form. > If you don't get any error, are you sure that the target row as >

DBI/update

2002-05-23 Thread Sven Bentlage
Hi everyone! I'm getting desperate. Can't find the error in the snibblet of code below...to me everything seems to be ok (except bad style etc), but the update of the mysql database does not work altought the sql statement is should be definitely ok: sub do_data { my $dbc = DBI->connect( $ds

CGI/Perl-usertracking

2002-05-23 Thread Sven
Hello all! Can anyone give me a hint what I should do or a direction to go? I want to realize a search in the results of a previous search. So I need to name the users (ID) and store/pass the results. 1) How can I do this with standard-Perl only? (main question) 2) What would be the recommended

CGI/Perl-usertracking

2002-05-23 Thread Sven
Hello all! Can anyone give me a hint what I should do? I want to realize a search in the results of a previous search. So I need to name the users (ID) and store/pass the results. 1) How can I do this with standard-Perl only? (main question) 2) What would be the recommended way if no restrictio