View Full Version : html characters
04-30-2006, 12:50 AM
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-30-2006, 12:58 AM
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, 01:20 AM
function myurlencode ( $TheVal )
return urlencode (str_replace("@","%40",$TheVal));
this could help you maybe?
04-30-2006, 06: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, 10: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 © 2015 vBulletin Solutions, Inc. All rights reserved.