Hi, I am trying to save some data(name, last name) in my forms with php and mysql. It's simple form like:
<input type='text' name='first_name' />
And php gets it after submiting with:
$first_name = trim(mysql_prep($_POST['first_name']));
The problem is, that if I type characters in my languege(lithuanian), it won't save them and will change into others.. I set the language of my country, also charset in mysql is UTF-8
Any ideas where the problem is?
EDIT: The very strange thing just happened. It started working just after I deleted all the charset=utf8 and set names utf8 :) however, thanks to everyone