The problem isn't php related - its HTML.

Try changing &nbsp for  

The semicolon is, strictly speaking, required for proper HTML syntax, but IE lets you 
get away with not having it.

I guess Netscape doesn't.



Richard Black
Systems Programmer, DataVisibility Ltd -
Tel: 0141 435 3504

-----Original Message-----
From:   Alex Francis [SMTP:[EMAIL PROTECTED]]
Sent:   19 February 2002 10:15
Subject:        [PHP] IE and Netscape

The following code shows exactly what I want in IE5 but does not in
Netscape. I have tried various combinations of slashes and quotes but can't
get it to display properly. Can anyone show me the changes I need to make.

echo "<h6>",$name, "&nbsp &nbsp", "E-mail:", "&nbsp",$email, "&nbsp
&nbsp",$date, "&nbsp &nbsp", "PostID:", "&nbsp",$id ,"</h6>";

IE5:    Debbie McNicol   E-mail: [EMAIL PROTECTED]      PostID:

Netscape:   Debbie McNicol  &nbspE-mail:&[EMAIL PROTECTED]

Alex Francis
Cameron Design
35, Drumillan Hill
Greenock PA16 0XD

Tel 01475 798106

This message is sent in confidence for the addressee only. It may contain
legally privileged information.
Unauthorised recipients are requested to preserve this confidentiality and
to advise the sender
immediately of any error in transmission.

PHP General Mailing List (
To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to