I have problems with some characters in password input form
" = \"
' = \'
\ = \\
& = empty
+ = empty
so if user types
n1N'11
in output he will get
n1N\'11
1) what I am doing wrong? In ajax-php password validation file I use simply $password=$_POST['password']; and get such result. In file that records data in mysql, I use $password = $mysqli->real_escape_string($_POST['password']);. But these problems are already at password validation...
2) How to change? I can change \" back to ", but can not change empty to & or +, because do not know what the visitor typed. Or simply not to allow to enter & and +
3) are there some more characters like mentioned?
I am new to programming. Possibly the questions are stupid.