You are here: Re: How to upload form data containing special characters correctly? « PHP Programming Language « IT news, forums, messages
Re: How to upload form data containing special characters correctly?

Posted by musiccomposition on 11/28/53 11:57

mysqli_real_escape_string() or mysql_real_escape_string should take out
all the characters that would affect MYSQL
Wim Cossement wrote:
> Hello,
>
> I was wondering if there are a few good pages and/or examples on how to
> process form data correctly for putting it in a MySQL DB.
>
> Since I'm not used to using PHP a lot, I already found out that
> addslashes() can be used escape some characters, but I'm having some
> more problems with for instance ä, å and µ (since the text is scientifical)
> Now some people also throw in htmlspecialchars() to convert those to
> HTML entities, but some nest htmlspecialchars() in addslashes() and
> others do the opposite.
>
> Is there a good and error proof way of ensuring that what one puts in a
> textarea gets stored and can be retrieved safe and sound?
>
> Thanks in advance,
>
> Wimmy
>
> --
> Being owned by someone used to be called slavery.
> Now it's called commitment.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация