Re: [PHP] Ereg question

2003-03-30 Thread Peter Houchin
Beauford, Jason, Build a bridge and get over it already sheeesh TYVMIA Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
gt; Sent: Monday, March 31, 2003 1:36 AM Subject: Re: [PHP] Ereg question > On Monday 31 March 2003 13:58, Beauford wrote: > > > I posted the information as I had it. I had no idea what the problem was > > and posted the information I thought was FULL and ACCURATE - > > Fu

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
On Monday 31 March 2003 13:58, Beauford wrote: > I posted the information as I had it. I had no idea what the problem was > and posted the information I thought was FULL and ACCURATE - Full and accurate if taken literally are absolute terms and are objective not subjective. > if this isn't > g

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
s once. B. - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 30, 2003 11:20 PM Subject: Re: [PHP] Ereg question > On Monday 31 March 2003 04:15, Beauford wrote: > > Just some more information. It appears tha

Re: [PHP] Ereg question

2003-03-30 Thread Jason Wong
On Monday 31 March 2003 04:15, Beauford wrote: > Just some more information. It appears that the session variable > $formsave["dob"] is causing the problem. If I echo the input $_POST['dob'] > it shows correctly, but when it's put into $formsave["dob"] the leading > and ending 0's are being stripp

RE: [PHP] Ereg question

2003-03-30 Thread John W. Holmes
> I thought trim only stripped white space.?. $formsave['dob'] is a > session variable. I have also found now that leading 0's are also being > stripped. > > foreach($HTTP_POST_VARS as $varname => $value) > $formsave[$varname] = trim($value, 50); > > If it's not there then the whole

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
--- Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Beauford'" <[EMAIL PROTECTED]>; "'PHP General'" <[EMAIL PROTECTED]> Sent: Sunday, March 30, 2003 2:28 PM Subject: RE: [PHP] Ereg question > > I am usi

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
This is what I get when I echo $formsave["dob"] - 9/09/199. It was inputted as 09/09/1990. B. - Original Message - From: "John W. Holmes" <[EMAIL PROTECTED]> To: "'Beauford'" <[EMAIL PROTECTED]>; "'PHP General'" &l

Re: [PHP] Ereg question

2003-03-30 Thread Beauford
27;" <[EMAIL PROTECTED]>; "'PHP General'" <[EMAIL PROTECTED]> Sent: Sunday, March 30, 2003 2:28 PM Subject: RE: [PHP] Ereg question > > I am using ereg to validate the format of a date entry (mm/dd/yy), but > if > > the year ends in a 0, it is bei

RE: [PHP] Ereg question

2003-03-30 Thread John W. Holmes
> I am using ereg to validate the format of a date entry (mm/dd/yy), but if > the year ends in a 0, it is being stripped and as such produces an error. > So > 1990 would be 199. The dob is being inputted by a form > > Here is my code: > > if (!ereg("^([0-9]{2})/([0-9]{2})/([0-9]{4})$", $form

Re: [PHP] ereg question

2001-09-02 Thread Papp Gyozo
Hello, check it in the manual: http://www.php.net/manual/en/function.ereg.php If you don't pass the third -- optional -- argument, then it's true. Otherwise not. I don't know this book, but you may keep in my mind that PHP is evolving, so the online manual can be its most up-to-date documentati