Faqts : Computers : Programming : Shopping For You : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 19 people (68%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

Why do multiple echo and printf functions, used to display a table, display newline charachers before the table in Netscape but not in IE?

Nov 27th, 2008 02:15
healthy man, dman, Articles Hosting, Chris Hester, Jose Rivera, http://www.ttnr.org


Netscape is a lot stricter when it comes to HTML. It might be your 
HTML 
that is not 100% accurate. Have you closed all open tags? Eg: <p> 
needs 
to have </p> at the end of the text. I know it's a pain, but it can 
help getting both browsers to work the same way.
Netscape 6 is even stricter, and will put in extra lines if you're not 
careful.
Otherwise, using echo and printf for tables should only affect the 
cells where you've used PHP, not before or after the table, as that is 
HTML. Hope I am on the right track here.
====
w3schools.com/php/func_string_sprintf.asp
i hope that helps.
http://www.hostingping.com
http://www.alvantom.com
http://www.scriptstan.com
http://www.carscorals.com
http://www.cellphonesmobiles.com
http://www.toplawyersattorneys.com