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
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
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
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
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
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
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);
7 matches
Mail list logo