LiveWire Network Peer Answers Peer Support Teen Forums Tech Forums College Forums 263 users online 221735 members 239 active today Advertise Here Sign In
TeenCollegeTechPhotos | Quizzes | LiveSecret | Memberlist | Dictionary | News | FAQ
Member Spotlight
Danielleeee
I haven't filled out my profile...
Mood: Down
You have 1 new message.
Emergency Help
Until you sign up you can't do much. Yes, it's free.

Sign Up Now
Membername:
Password:
Already have an account?
Invite Friends
Active Members
Groups
Contests
Moderators
2 online / 22 MPM
Fresh Topics
  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic

Prevent HTML with PHP
Replies: 6Last Post Sep. 21, 2006 5:47pm by masterfultemptation
Welcome to LiveWire!
We're Stronger Together.
Join the Community
Single page for this topic Email Print Favorite
( masterfultemptation )


Visionary

Patron
Reply
Okay, so I'm outputting information from a variable.

Code:
$variable = "<iframe src="http://www.google.com";></iframe>";

Now I want to print the contents of this variable.

Code:
print("$variable");

But, seeing as how the contents of the variable is HTML code, how do I output it as-is...so it out puts exactly

Code:
<iframe src="http://www.google.com";></iframe>

Instead of creating the iframe.

Note, the iframe was just an example...I need this for other commands as well.

Thanks


9:52 am on Sep. 21, 2006 | Joined: May 2006 | Days Active: 383
Join to learn more about masterfultemptation Ontario, Canada | Straight Male | Posts: 4,550 | Points: 9,031
Single page for this topic Email Print Favorite

Quick Reply

You are signed in as our guest.

Looking for something else?
 

  LiveWire / Technical Forums / Programming & Application Development / Viewing Topic