[PHP] simple form validation

2001-04-26 Thread Jamie Saunders
Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm currently working on a Computer Studies project for a local business which involves setting up several databases on

Re: [PHP] simple form validation

2001-04-26 Thread Pavel Jartsev
Jamie Saunders wrote: ... Right, you still with me? What I'd like to know is how to validate a text field in an HTML form to make sure it only contains numbers. ... Try this: ? $phone_nr = '54256009'; if ( ereg( '^[0-9]+$', $phone_nr )) ...ok... else ...not ok...

RE: [PHP] simple form validation

2001-04-26 Thread PHPBeginner.com
:[EMAIL PROTECTED]] Sent: Friday, April 27, 2001 11:39 PM To: [EMAIL PROTECTED] Subject: [PHP] simple form validation Hi, First of all, I've just joined this list, so here's a brief introduction. My name's Jamie Saunders, I'm an 18 year old student from the UK studying for my A-Levels. I'm