Hi, Marjie
You may find a lot of javascript functions to help you go through this
problem.
BTW, why not use perl+template model, which makes eaiser to use javascirpt
in your page.
Caven , Made In China
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTEC
}
# I'm sure you've got the rest.
---
.ted
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 29, 2003 6:31 PM
To: [EMAIL PROTECTED]
Subject: newbie question - re: form validation ?JUNK MAIL?
Hi. I'm a newbie: both to this news gr
Hi. I'm a newbie: both to this news group and to land of Perl/cgi :o) I'd
appreciate getting some help with a form validation script!
I'm working on a conference room reservation form. The html form has fields for name,
title of meeting, day/month/year, start time a
on vr, 07 feb 2003 18:54:25 GMT, Will wrote:
> Second, suppose they try a username that has already
> been taken. I need a way to kick back an error
> message
> to them. I tried setting the username field in the
> usrs table to UNIQUE, so that might help if someone
> tried to insert something al
Will wrote:
> Greets Folks,
>
> I am developing a registration area for a members site
> that will interface with a MySQL DB users table, and I
> ran into a problem or two. Note that I am using DBI as my DB Driver.
>
> ...
>
> Second, suppose they try a username that has already
> been taken. I
Greets Folks,
I am developing a registration area for a members site
that will interface with a MySQL DB users table, and I
ran into a problem or two. Note that I am using DBI
as my DB Driver.
First, the simple stuff. I need a way to (at run-time)
confirm all the fields have been filled in, and,
> -Original Message-
> From: Al Hospers [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 03, 2002 1:37 PM
> To: [EMAIL PROTECTED]
> Subject: RE: validation
>
>
> > Al> thanks to everyone who responded. it seems that Bob's
> > Al> /^\d+$/
> Al> thanks to everyone who responded. it seems that Bob's
> Al> /^\d+$/
>
> Al> works the best overall for this situation.
>
> Beware that this also matches "123\n". A solution that rejects /\D/
> will be faster and more accurate and easier to type than a solution
> that accepts your regex.
O
> "Al" == Al Hospers <[EMAIL PROTECTED]> writes:
Al> thanks to everyone who responded. it seems that Bob's
Al> /^\d+$/
Al> works the best overall for this situation.
Beware that this also matches "123\n". A solution that rejects /\D/
will be faster and more accurate and easier to type tha
On Sat, 2 Feb 2002 13:05:30 -0500, Al Hospers <[EMAIL PROTECTED]> wrote:
> I'm surprised that no one has put together a library of functions to
> handle form validation issues. it would seem that this is one of those
> things that needs to be done all the time.
Have you l
thanks to everyone who responded. it seems that Bob's
/^\d+$/
works the best overall for this situation. I have a lot to learn about
Perl & regex. I'm surprised that no one has put together a library of
functions to handle form validation issues. it would seem that this is
one o
> -Original Message-
> From: Al Hospers [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 01, 2002 8:14 PM
> To: [EMAIL PROTECTED]
> Subject: validation
>
>
> I need a regular expression that will only allow a variable to contain
> digits. it should fail i
On Sat, 2 Feb 2002, Brett W. McCoy wrote:
> > return 1 unless ($Bid_Amount =~ [/d/] );
>
> Your regular expression should be /[0-9]/
Or rather, /\D/ if you are matching against non-numerical values.
-- Brett
http://www.chapelperilous.net/
-
On Fri, 1 Feb 2002, Al Hospers wrote:
> I need a regular expression that will only allow a variable to contain
> digits. it should fail if there is anything else in the variable:
> dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the
> following would work, I am obviously incorre
> if you're trying to return 'true' unless $Bid_Amount contains a
> non-digit, try this:
>
> return 1 unless $Bid_Amount =~ /\D/;
that works great. now I need to make sure that there are no embeded
spaces. it does return TRUE if there is one or more spaces in there. I
do know how to strip the lea
Al Hospers wrote:
> I need a regular expression that will only allow a variable to contain
> digits. it should fail if there is anything else in the variable:
> dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the
> following would work, I am obviously incorrect.
>
> return 1 u
I need a regular expression that will only allow a variable to contain
digits. it should fail if there is anything else in the variable:
dollar signs, commas, dots, alphas, spaces, quotes etc. I thought the
following would work, I am obviously incorrect.
return 1 unless ($Bid_Amount =~ [/d/] );
Hi:
Is there any way to validate a user (by providing User/Passwd fields) in CGI against
Solaris OS (2.6 or 7 or 8) logon validation so that we don't have to maintain a
separate list of userids/passwds or use the htpasswd in Apache server. This way we
can just rely on the OS valid
');
print <
$msg
EOF
>I would appreciate some help or pointers for the following CGI / Perl /
>MS-FrontPage 2000 form validation problem:
>
>I am writing an autoresponder which generates two e-mails: one to me, and a
>confirmation back to the sender. I have a form on an MS-Fr
I would appreciate some help or pointers for the following CGI / Perl /
MS-FrontPage 2000 form validation problem:
I am writing an autoresponder which generates two e-mails: one to me, and a
confirmation back to the sender. I have a form on an MS-FrontPage web page
which collects initial user
20 matches
Mail list logo