MichaelMackey Posted June 16, 2008 Share Posted June 16, 2008 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 More sharing options...
rhodesa Posted June 16, 2008 Share Posted June 16, 2008 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']);?>" Link to comment https://forums.phpfreaks.com/topic/110470-solved-php-echos-tables-and-ie-7/#findComment-566746 Share on other sites More sharing options...
MichaelMackey Posted June 16, 2008 Author Share Posted June 16, 2008 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. Link to comment https://forums.phpfreaks.com/topic/110470-solved-php-echos-tables-and-ie-7/#findComment-566837 Share on other sites More sharing options...
MichaelMackey Posted June 16, 2008 Author Share Posted June 16, 2008 Hmm that IE 8 beta actually seems to be more helpful with messages. Link to comment https://forums.phpfreaks.com/topic/110470-solved-php-echos-tables-and-ie-7/#findComment-566855 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.