I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed.
What should I do ?
Please help!
I sent a C++ code snippet from textarea to another page using php. Evenything got printed but the as the header file was <iostream>, it did not get printed. Any piece of text that is enclosed by <> is not printed.
What should I do ?
Please help!
Those characters are interpreted as HTML. Wrap the code in <pre> or <code> tags and replace those characters with their HTML escape codes if necessary (ie. < and >).
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.