![]() |
|
|
|
| ||||||
|
Welcome to the The ProgrammersTalk Community forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
| Tags: ignore, input, php |
![]() |
![]() | | LinkBack | Thread Tools | Display Modes | ![]() |
| |
| ||||
| Just create a function to remove the \' , i am sure if you mess around and give things a few trys it will work fine. |
| ||||
| Your PHP configuration is probably setup to escape characters. Just run the string through PHP: stripslashes - Manual . If you plan to port this script to other servers, then PHP Code: |
| The Following User Says Thank You to TeraTask For This Useful Post: | ||
HelloWorld (11-22-2007) | ||
| ||||
| The reason you'd use the portable code is so that it escapes only what is supposed to be escaped. If magic_quotes is on, then you want to stripslashes; otherwise, you don't. If, however, you know that it will be running on a server with magic_quotes on, then you could just have the stripslashes and save the function call. |
| The Following User Says Thank You to TeraTask For This Useful Post: | ||
HelloWorld (11-23-2007) | ||
![]() |
| Thread Tools | |
| Display Modes | |
| |