Search the Community
Showing results for tags 'escape @'.
I have a form that reads in an email address. I get things like email@example.com. I would like to catch these common mistakes and correct them. However, sometimes the thing I'm looking at is correctly typed on the left side of the @. So if someone has a valid firstname.lastname@example.org I don't want to make this replacement. So, I only want to look at what is on the right side of the @. I have tried including the @ in my compare/replace but that doesn't seem to work at all. Any ideas how I might do this? $action = "first"; if (isset ($_POST['action'])) $action = $_POST['action']; if ($action == '