Jump to content

[SOLVED] Escaping data properly


iarp

Recommended Posts

Hey,

 

in the database:

<div id="legal">
          <a href="/tos/">Terms of Service & Use</a> | <a href="/privacy/">Privacy Policy</a>
</div>

 

Whenever i try to display this entry from the database in an <input> as such:

<label>Legal:</label> <input class="config-input" type="text" name="legal" value="' . $config['legal'] . '" /><br />

 

The first quote " screws everything up on the page. What must i change?

Link to comment
https://forums.phpfreaks.com/topic/126389-solved-escaping-data-properly/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.