You need to use CHARACTER ESCAPE CODES. You are using the echo command which prints a string. The sting is enclosed in " ".
If your code you are making this mistake:
echo "this part is good "this part is bad" still does not work";
In the line above all goes well untill the second " mark is detected after the word good. The proper format if I wanted to have someting printed thats inclosed in a " " would be like this:
echo "this part is good \"this part is bad\" still does not work";
So the same applies in HTML. For exampe:
This is bad:
echo "<A HREF=www.mydware.com>Click Here</A>";
This is good:
echo "<A HREF="[url]www.mydware.com[/url]">Click Here</A>";
As another hint if you want your code to be eaiser to read and debug, try using echo like this:
echo ("Hello World");
Brakets make it easier to see the beginning and end of the string. Just a suggestion :o)
Hope it helps!