Re: Re: strange caracters

From: Date: Tue, 28 Mar 2006 05:09:55 +0000
Subject: Re: Re: strange caracters
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-26796@lists.php.net to get a copy of this message
If your site is through a web hosting service, most hosts automatically precede certain characters (",' etc.) with backslahes on a form submission. The characters you pointed out are often used as delimiters so if your form submission is intended to write to a database, these characters should be preceded by a backslash so that when the information is parsed, it treats them as literal text and not delimiters. Cheers. Armando Karuna wrote:
What's do you mean they're incorrect? Are they preceded by a slash? Google for "php sql injection" and it'll help you fix it :) There's also a detailed overview of this in the php manual under the mysql_ entries. ""christian tischler"" <christian@tischler.co.uk> wrote in message news:4D.BB.37235.65EA7244@pb1.pair.com...
help please. probably something very simple, but not for me. when i use an online form on my website to add some text to my access database it saves certain caracters incorrectly (like ",'...) please point me in the right direction. christian


« previous php.windows (#26796) next »