I can not get this code to work at all.
print"<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>");
or
echo"<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>");
even
echo("<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>"));
doesnt work
i need to have it in php not outside of the php tag. i think i need something like a urlencode in there or something to designate it a url but i cant get figure out what i need for that.for one you forgot a ( in all of those lines. fro 2 you don't really need them. for 3 you have to escpae the quotes if you are inside the quotes for the echo or print
print"<a href=http://www.htmlforums.com/archive/index.php/\"www.google.com\">Google</a>";ah i see now
echo"<a href=http://www.htmlforums.com/archive/index.php/"
would just print <a href= <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/then">http://www.htmlforums.com/archive/index.php/then</a><!-- m --> it wouuld make an error
thanks for the helpcorrectThere is a quick way to see what HTML code output is being produced by the PHP code, and checking if it is valid code. Just run the code through <!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m --> and see what errors you get.
print"<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>");
or
echo"<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>");
even
echo("<a href=http://www.htmlforums.com/archive/index.php/"www.google.com">Google</a>"));
doesnt work
i need to have it in php not outside of the php tag. i think i need something like a urlencode in there or something to designate it a url but i cant get figure out what i need for that.for one you forgot a ( in all of those lines. fro 2 you don't really need them. for 3 you have to escpae the quotes if you are inside the quotes for the echo or print
print"<a href=http://www.htmlforums.com/archive/index.php/\"www.google.com\">Google</a>";ah i see now
echo"<a href=http://www.htmlforums.com/archive/index.php/"
would just print <a href= <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/then">http://www.htmlforums.com/archive/index.php/then</a><!-- m --> it wouuld make an error
thanks for the helpcorrectThere is a quick way to see what HTML code output is being produced by the PHP code, and checking if it is valid code. Just run the code through <!-- m --><a class="postlink" href="http://validator.w3.org/detailed.html">http://validator.w3.org/detailed.html</a><!-- m --> and see what errors you get.