View Full Version : html characters
04-29-2006, 11:50 PM
i am currently using the following to validiity form fields
thats fine and all, but i would like the user to be able to login using their email but htmlspecialchars filters out @. what is another way to secure my forms but allow users to login with their email?
04-29-2006, 11:58 PM
don;t think htmlspecialchars converts the @ symbol: http://us2.php.net/manual/en/function.htmlspecialchars.php
you sure you're not using htmlentities(http://us2.php.net/manual/en/function.htmlentities.php)?
04-30-2006, 12:20 AM
function myurlencode ( $TheVal )
return urlencode (str_replace("@","%40",$TheVal));
this could help you maybe?
04-30-2006, 05:11 PM
Why do you need to filter out HTML characters anyway? You only need to escape data before you output it (for this sort of validation anyway; you still need to check for things like SQL injections in certain cases).
05-05-2006, 09:57 PM
what should i use that is both secure and allows member to use their email as their login?
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.