Hi all,
I am running a simple user login area with an Admin area to add new users.
I am trying to make the admin area as simple as possible and I would like to be able to format names so that they are entered into the database correctly.
For example
Dick Van Dike = Dick.VanDike
I can do this part fine my problem is take out the ' from a name this is what happens
Paddy O'Brien = Paddy.O\Brien
Why does it replace ' with \ whenI just want it to remove the '
Here is the code
$sname = ereg_replace('_|-|\'',"",$sname);
Any help would be some help 🙂
Thanks