Trying to get code to search if \'@\' symbol is present in typed-in email address and echo if symbol is not. Everything works fine without the searching for @ code.
chec
A much better approach to validating the emails, would be to use the built in filters intended for that sort of thing
The reason your code doesn't work, is because PHP doesn't have a str or indexOf method, you should be using something like strpos instead
str
indexOf
strpos
if (strpos($email, '@') === false) { ...