Date: 08/18/99
- Next message: Andrey Zmievski: "[PHP-DEV] cvs: /php3/functions wddx_a.c"
- Previous message: Thies C. Arntzen: "[PHP-DEV] Re: oci/php/OCIDefineByName"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: craig <email protected>
Operating system: Unix/Solaris 2.5
PHP version: 3.0.12
PHP Bug Type: Misbehaving function
Bug description: ereg_replace doesn't work with $
My web form allows users to put in a dollar value which goes into a MySql database. We want to remove any $ sign in the submitted value before sending it the database. The command: ereg_replace("$","",$value) doesn't appear to have any affect. I change the command to: ereg_replace("#","b",$value) and submit #5555 I get: b5555 if I replace the command with ereg_replace("$","b",$value) and submit $5555 I get $5555b. it behaves like the $ anchor. I tried these also, they produce the same results:
ereg_replace("\$","b",$value)
ereg_replace(chr(36),"b",$value)
Of course I don't want the 'b' I want it to work like, ereg_replace("$","",$value)
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Andrey Zmievski: "[PHP-DEV] cvs: /php3/functions wddx_a.c"
- Previous message: Thies C. Arntzen: "[PHP-DEV] Re: oci/php/OCIDefineByName"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

