Re: [PHP] eregi problems

2002-07-04 Thread Justin French
Dan, I'll give you a little piece of advise that was given to me a little while back on this list: Go to http://www.killersoft.com/ and grab a copy of the validateEmailFormat program. QUOTE PHP4 translation of Jeffrey E.F. Friedl's definitive Email Regex Program from O'Reilly's Mastering

Re: [PHP] eregi problems

2002-07-04 Thread dan radom
My main cnocern at this point is that the eregi is being totally ignored. I just want to make sure the email address is in a valid format, not that it is a valid email address. I'll look at validEmailFormat as well, but I don't understand why it's not even being examined. dan * Justin

Re: [PHP] eregi problems

2002-07-04 Thread Marek Kilimajer
If the regexp matches, it is a valid email, so you need ! in front of it. dan radom wrote: I've got a form that's posted to a php page where I'm attempting to validate a field contains a valid email address. The eregi below seems to be totally ignored... if

Re: [PHP] eregi() problems...

2002-04-16 Thread Michael Virnstein
eregi('_[0-9]{4}.jpg$', $file_name) should be eregi('_[0-9]{4}\.jpg$', $file_name) . is a spcial character(means every character) and has to be backslashed if you want it's normal meaning Jas [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I must be

Re: [PHP] eregi() problems...

2002-04-16 Thread Michael Virnstein
the rest seems ok to me, if you search for files with e.g hello_.jpg as name Michael Virnstein [EMAIL PROTECTED] schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... eregi('_[0-9]{4}.jpg$', $file_name) should be eregi('_[0-9]{4}\.jpg$', $file_name) . is a spcial

Re: [PHP] eregi() problems...

2002-04-15 Thread Robert Cummings
jas wrote: // second selection for main image on main page $dir_name = /path/to/images/directory/; $dir = opendir($dir_name); $file_lost .= pFORM METHOD=\post\ ACTION=\done.php3\ NAME=\ad01\ SELECT NAME=\images\; while ($file_names = readdir($dir)) { if ($file_names != . $file_names

Re: [PHP] eregi() problems...

2002-04-15 Thread jas
I must be doing something wrong, for that solution did not work. Robert Cummings [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... jas wrote: // second selection for main image on main page $dir_name = /path/to/images/directory/; $dir = opendir($dir_name);