hello everyone, 

This is important,I am trying to post some spanish characters from a form on
a page and i am comparing those spanish characters to the same letters on
the same page but on strcmp the return is not zero.I don't know what is
wrong some problem with the post method i guess or strcmp i don't
know....Please help....here is the code... 

<html><body><?php 
echo(strcmp('í',$_POST['check'])); 
?> 

<form action="./index.php" method="post"> 
<input type="text" name="check"> 
<input type="submit" name="go" > 
</form> 
</body></html> 

the name of the file is index.php and i am typing í in the text box before
pressing submit.the result is not coming as zero but -1.The result is not
coming for any of spanish or special characters like ¿,ñ,ü how to solve it
that echo answer is zero. 

I have searched a lot on net and finally i am coming here to get some help.
-- 
View this message in context: 
http://www.nabble.com/php-spanish-character-problem-tp15185959p15185959.html
Sent from the PHP - General mailing list archive at Nabble.com.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to