Reply to Slashes in Forms

Your name:

Reply:


Posted by StevePBurgess on 10/07/61 11:34

Ok. I have checked the magic quotes is on. I have a form on my web
page. The input from this is sent (by POST) to the server. A PHP script
processes it. If there any errors the input is urlencoded and returned
to the webpage with the form in the URL. I am not using add or strip
slashes in my script (except for the testing I did that is explained
below).

If the user inserts slashes or double quotes - when these are returned
to the form they are slashed. If one backslash is inserted, 4
backslashes appear when the form is redisplayed. If I enter a double
quote this is returned as 3 backslashes (the double quote disappears).

If I stripslashes() before returning the input to the form, one
backslash becomes 2 backslashes and a double quote is returned as 1
backslash (but again the double quote disappears).

Any thoughts?

Thanks, in anticipation....

[Back to original 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

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