Pages: 1
or remove all those special characters!!
coz some of them put unnecessary long @#!*% characters as there name.
[b]edited:[/b]
or....
a jscript with alert and redirection like the force login script but
only the script is about not allowing friendster account with more
than 14 characters(or special characters) attach on there name.
I'm using v2.1 Thanx...
Last edited by Refresh/Reload (2008-12-20 03:38:12)
Last edited by 0tai (2008-12-20 01:41:50)
I read something about that substr(etc...) but don't
know where to apply it... thanx for giving me the idea!!
still no luck!!
I think it has something to do with those special characters...
i saw some examples on php forums and it goes like below...
[b]removing special characters[/b]
[quote]$name = $_GET['name'];
$var = $name;
$stripped = ereg_replace("[^A-Za-z0-9 ]", "", $var);
echo $stripped;[/quote]
or this two...
[quote]$text = preg_replace('/[^a-zA-Z0-9_ -]/s', '', $text);
$text= preg_replace('/[^\w\d_ -]/si', '', $text);[/quote]
it's about accepting 0-9 and a(A) to z(Z) characters only
and that's what i want on my WVM tracker.
heheh... i'm still
when it comes to php...
i have no idea how to apply those examples...
anyways Thanx friend!!
I hope i can or somebody can figure it out later...
<">this function strips or encodes unwanted characters
Pages: 1