Re: [PHP-DB] form validation

2002-12-22 Thread Manuel Lemos
Hello, On 12/22/2002 07:48 AM, Antonio Bernabei wrote: I am intersted, but maybe I lost the link to the class you mentioned Sorry, I forgot to mention the URL: http://www.phpclasses.org/multipageforms -- Regards, Manuel Lemos I am developing a db form that gets passed to another form. I n

Re: [PHP-DB] form validation

2002-12-22 Thread Antonio Bernabei
I am intersted, but maybe I lost the link to the class you mentioned Antonio - Original Message - From: "Manuel Lemos" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, December 21, 2002 3:40 AM Subject: Re: [PHP-DB] form validation > Hello, > >

Re: [PHP-DB] form validation

2002-12-20 Thread Manuel Lemos
Hello, On 12/20/2002 12:25 PM, Mignon Hunter wrote: I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in browser...(the only way I know how to

Re: [PHP-DB] form validation

2002-12-20 Thread Mignon Hunter
Thanks for your suggestions. I can see the pros and cons of each. I will give each some thought and decide the best way to go. Thx Mignon On Fri, 2002-12-20 at 08:41, Jason Wong wrote: > On Friday 20 December 2002 22:25, Mignon Hunter wrote: > > Hello list, > > > > I am developing a db form t

Re: [PHP-DB] form validation

2002-12-20 Thread Ignatius Reilly
day, December 20, 2002 3:25 PM Subject: [PHP-DB] form validation Hello list, I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in

Re: [PHP-DB] form validation

2002-12-20 Thread Jason Wong
On Friday 20 December 2002 22:25, Mignon Hunter wrote: > Hello list, > > I am developing a db form that gets passed to another form. I need to > validate the fields in form(1), before passing on. The form action > posts to form(2), so that upon hitting submit - form(2) shows up in > browser...(th

[PHP-DB] form validation

2002-12-20 Thread Mignon Hunter
Hello list, I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in browser...(the only way I know how to do this). I am trying to use php to v

Re: [PHP-DB] form validation question - regex not working

2002-08-22 Thread Martin Adler
http://www.cpan.org/authors/Tom_Christiansen/scripts/ckaddr.gz this should be sufficient preg_match("/^[a-zA-Z\d_-]+(\.[a-zA-Z\d_-]+)*@([a-zA-Z\d-]+\.)+([a-zA-Z]{2,4 })$/", $useremail) Oh, what i also have to say the ereg-funktions are to old you schould use the new php4 funktions preg_match(

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 04:01, [EMAIL PROTECTED] wrote: > Got it figured out, and foreign address do work now - > if (empty($useremail) || > !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-])+\.([A-Za-z])+\.([a-z])*$", > $useremail)) What do you mean by 'foreign' addresses? The above will still f

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread Ignatius Reilly
PROTECTED] ; [EMAIL PROTECTED] Sent: Wednesday, August 21, 2002 10:04 PM Subject: Re: [PHP-DB] form validation question - regex not working Regarding the problem you are actually asking about: > > > if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-]) > +\.

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread DL Neil
Regarding the problem you are actually asking about: > > > if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-]) > +\. > > > ([A-Za-z]{2,3})+$", $useremail)) > > Notice the {2,3} which is supposed to limit the last part to 2 or 3 > > letters, but I have been testing this and > >

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread DL Neil
Regarding the good sense or otherwise for checking email addresses: > This is from a php/mysql book... If it was from page 115, then please turn over to page 116! Regards, =dn -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread chip . wiegand
Jason Wong <[EMAIL PROTECTED]> wrote on 08/21/2002 12:10:02 PM: > It's only checking for addresses of the form [EMAIL PROTECTED] > As you can see, the list address ([EMAIL PROTECTED]), and my address > ([EMAIL PROTECTED]) would be treated as invalid. Not very clever is it? Got it figured out, an

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread Pierre-Alain Joye
On Thu, 22 Aug 2002 03:10:02 +0800 Jason Wong <[EMAIL PROTECTED]> wrote: > On Thursday 22 August 2002 02:54, [EMAIL PROTECTED] wrote: > As you can see, the list address ([EMAIL PROTECTED]), and my address > ([EMAIL PROTECTED]) would be treated as invalid. Not very clever is it? Well, anyway t

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 02:54, [EMAIL PROTECTED] wrote: > This is from a php/mysql book. If they're presenting it as something that you can use in your real-life code then you should look carefully at all the other code in the book to see whether they're all as sloppy. On the other hand if

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread chip . wiegand
Jason Wong <[EMAIL PROTECTED]> wrote on 08/21/2002 10:00:23 AM: > On Thursday 22 August 2002 00:29, [EMAIL PROTECTED] wrote: > > I hope this isn't too far off topic - > > > > I have a regex for validating email addresses - > > > > if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread DL Neil
Jason, Concur with your advice, but was also amused by its juxtaposition with your sig file philosophy... =dn [snipped] > > I have a regex for validating email addresses - > You're strongly advised not to write your own regex for validating email > /* > The most important things, each person

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread Jason Wong
On Thursday 22 August 2002 00:29, [EMAIL PROTECTED] wrote: > I hope this isn't too far off topic - > > I have a regex for validating email addresses - > > if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-])+\. > ([A-Za-z]{2,3})+$", $useremail)) > > Notice the {2,3} which is supp

Re: [PHP-DB] form validation question - regex not working

2002-08-21 Thread DL Neil
Chip, It's not so much off topic as a perennial topic - see archives and many tutorial articles. When you've worked out the answer to this question, please try out your algorithm on my (or any other 'foreign') address. Then consider the imminent introduction of further TLDs, eg .info (four charac

[PHP-DB] form validation question - regex not working

2002-08-21 Thread chip . wiegand
I hope this isn't too far off topic - I have a regex for validating email addresses - if (empty($useremail) || !eregi("^([A-Za-z0-9\.\_-])+@([A-Za-z0-9\_-])+\. ([A-Za-z]{2,3})+$", $useremail)) Notice the {2,3} which is supposed to limit the last part to 2 or 3 letters, but I have been testing t

RE: [PHP-DB] Form Validation

2002-02-14 Thread Gurhan Ozen
ormat etc. the data wouldn't be inserted into MySQL database.. Gurhan -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 2:32 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Form Validation Anyone know of a good function to strip characters and stuff

RE: [PHP-DB] Form Validation

2002-02-14 Thread Rick Emery
addslashes() stripslashes() Your question is vague... -Original Message- From: jas [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 1:32 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Form Validation Anyone know of a good function to strip characters and stuff that would

[PHP-DB] Form Validation

2002-02-14 Thread jas
Anyone know of a good function to strip characters and stuff that would cause mysql to crash from forms? Jas -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php