Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Help > PHP Programming Help

PHP Programming Help Post any question relating to PHP Programming here and hopefully someone can help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2003-05-12, 01:19 PM
valium
Guest
 
Posts: n/a
Default

Hello.

I am using a form with a textbox with the value 'Hello',World','come on'

When the form is sent to another page the quotations marks have been changed by \'

Do you have any idea about the problem? Last week the same code works fine! Could it be a php version update?

Rgds
Valium :blink:
Reply With Quote
  #2 (permalink)  
Old 2003-05-12, 08:23 PM
Member
 
Join Date: Apr 2003
Location: Netherlands
Posts: 40
jorgen
Send a message via MSN to jorgen
Default

Well,

that are the magic quotes...

php.ini contains a key named "magic_quotes_gpc". In your php.ini this key contains the value: "on". So PHP adds automaticly slashes to any POST, GET or Cookie data. To remove the slashes use: stripslashes($foo);
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:56 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.