RE: [PHP] eregi_replace() function in a script

From: Date: Sun, 01 Dec 2002 22:14:45 +0000
Subject: RE: [PHP] eregi_replace() function in a script
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126638@lists.php.net to get a copy of this message
> For instance, let's say I put _absolutely nothing_ in the URL textbox and > then hit submit - the PHP still processes _without_ an error. > > It says: > "Your submission -- -- has been received!" > > I would've thought the eregi_replace() function would've validated an > entry > with no characters. Well, whether it causes an error not depends on your code. That's just the pattern you showed. It may not match anything, so nothing gets replaced with eregi_replace() and hence no "active link" is created, but it may not necessarily cause an error. Can you show me some of the code in context, with the pattern you showed earlier and how eregi_replace is being used? Thanks. ---John Holmes...

« previous php.general (#126638) next »