Jump to content

[SOLVED] Echo Problem


mcmuney

Recommended Posts

<img src=missing.gif alt=this is a happy cow>

 

will give an alt text = This as it interprets just the "this" as belonging to the alt attrubute.

 

 

However

<img src="missing.gif" alt="this is a happy cow">

 

will give the correct value.

 

Aways quote attribute values.

 

If echo is used

echo '<img src="missing.gif" alt="this is a happy cow">';

 

Link to comment
https://forums.phpfreaks.com/topic/87283-solved-echo-problem/#findComment-446471
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.