- Home /
Question by
Jhoseph-Marquez · Apr 04, 2017 at 05:27 AM ·
wwwmysqlphpc# tutorial
C # Does not recognize characters after space
presentacion1.png
(187.0 kB)
Comment
Answer by tanoshimi · Apr 04, 2017 at 06:39 AM
Always escape any user-entered text before submitting it to a web handler. (And, if you're using these parameters to populate a high score table, I really hope you're using a stored procedure rather than dynamically constructed SQL at the other end)
string URL = WWW.EscapeURL("http://...." + txt01Codigo.text + "&NOM=" + txt02Nombre.text);
WWW connection = new WWW(URL);
You used EscapeURL wrong in this case. You only want to escape parts of the URL that should not contain URL special characters. When using it like this your URL would become an invalid URL.
You should use it like this:
string URL = "http://...." + WWW.EscapeURL(txt01Codigo.text) + "&NO$$anonymous$$=" + WWW.EscapeURL(txt02Nombre.text);