Re: newbie question - re: form validation

2003-06-01 Thread caven
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

RE: newbie question - re: form validation ?JUNK MAIL?

2003-05-30 Thread ted . weston
} # 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

newbie question - re: form validation

2003-05-30 Thread mst_wake
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

Re: Data Validation Issues

2003-02-07 Thread Felix Geerinckx
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

RE: Data Validation Issues

2003-02-07 Thread Bob Showalter
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

Data Validation Issues

2003-02-07 Thread Will
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,

RE: validation

2002-02-04 Thread Bob Showalter
> -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+$/

RE: validation

2002-02-03 Thread Al Hospers
> 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

Re: validation

2002-02-03 Thread Randal L. Schwartz
> "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

Re: validation

2002-02-02 Thread Briac Pilpré
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

RE: validation

2002-02-02 Thread Al Hospers
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

RE: validation

2002-02-02 Thread Bob Showalter
> -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

Re: validation

2002-02-02 Thread Brett W. McCoy
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/ -

Re: validation

2002-02-02 Thread Brett W. McCoy
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

RE: validation

2002-02-02 Thread Al Hospers
> 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

Re: validation

2002-02-02 Thread fliptop
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

validation

2002-02-01 Thread Al Hospers
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/] );

Logon Server Validation???

2001-12-05 Thread Prabhu Sundaram
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

Re: Form data validation CGI / Perl / MS-FrontPage web page

2001-07-23 Thread Teresa Raymond
'); 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

Form data validation CGI / Perl / MS-FrontPage web page

2001-07-19 Thread Notabene
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