Jump to content

[SOLVED] Php echo's, tables, and IE 7.


MichaelMackey

Recommended Posts

So I'm new to Php overall.  Things have been going well in Firefox but I'm trying to get things working in IE 7 now and I'm not quite sure what's going wrong.

 

The errors IE 7 gives me seem to refer to lines that are similar to this one:

 

value="<?php echo $info['first_name'];?>"

 

Is there something about this IE really doesn't like?  Thanks for any help.

 

Michael

Link to comment
https://forums.phpfreaks.com/topic/110470-solved-php-echos-tables-and-ie-7/
Share on other sites

if you are putting values as HTML attributes or even between HTML tags, and you don't know what the values will be, you should wrap it in htmlspecialchars(). It will keep special chars like " < > & etc from interfering.

 

value="<?php echo htmlspecialchars($info['first_name']);?>"

Thanks Rhodesa, that'll help in some of the other stuff I have to do as well.

 

Do you know if there is a program out there that makes finding the source of these errors easier?  Right now I'm getting errors at (1,1) for quite a few items on one page which is just comments as far as I can see. 

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.