View previous topic :: View next topic |
Author |
Message |
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Fri Jan 07, 2005 12:31 am Post subject: PHP Is Screwed |
|
|
""''
Here's my example:
"Hello"
Goes to \"Hello\"
Any ideas? |
|
Back to top |
 |
 |
Glitch2082 -
Joined: 02 Dec 2004 Posts: 194
|
Posted: Fri Jan 07, 2005 2:29 am Post subject: |
|
|
$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 |
|
 |
Arctic -
Joined: 24 Sep 2004 Posts: 560
|
Posted: Fri Jan 07, 2005 2:55 pm Post subject: |
|
|
Isn't there something is the PHP coding that can change this? It happens in my forums, my php blog... |
|
Back to top |
 |
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Jan 07, 2005 5:01 pm Post subject: |
|
|
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 |
|
 |
|