PHP Is Screwed

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
Arctic
-


Joined: 24 Sep 2004
Posts: 560

PostPosted: Fri Jan 07, 2005 12:31 am    Post subject: PHP Is Screwed Reply with quote

""''

Here's my example:

"Hello"

Goes to \"Hello\"

Any ideas?
Back to top View user's profile Send private message ICQ Number
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Fri Jan 07, 2005 2:29 am    Post subject: Reply with quote

$hello = $_POST['hello'];

// hello is the input box in the form on the other page
// this is just an example.

echo stripslashes($hello);

// That will strip the "/"'s
_________________
int main() {
cout << "Im Pro Apache";
cin.get();
}
Back to top View user's profile Send private message Send e-mail
Arctic
-


Joined: 24 Sep 2004
Posts: 560

PostPosted: Fri Jan 07, 2005 2:55 pm    Post subject: Reply with quote

Isn't there something is the PHP coding that can change this? It happens in my forums, my php blog...
Back to top View user's profile Send private message ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Fri Jan 07, 2005 5:01 pm    Post subject: Reply with quote

Just go to your php.ini in C:\Windows or W:\Winnt depending on the OS you
have and disable "magic_quotes" and you will no longer see this again. :)
Back to top View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group