Storing string as it in php

jdevine420

New Member
I am taking input from a html page then data comes to php page and is stored in a variable say $code. The problem is when i submit :-\[code\] #include<iostream> using namespace std; int main( ) { cout<<"1"; }\[/code\]Then what stored in $code is :-\[code\]#include<iostream>using namespace std;int main( ) {cout<<\"1\"; //Notice the change , these backslashes at cout.}\[/code\]How can i avoid this ? i am using 000webhost.com & this thing doesnt happens in my localhost.
 
Back
Top