with PHP how do I echo or print a hyperlink so that it'll open in a blank...

  • Thread starter Thread starter Ryan
  • Start date Start date
R

Ryan

Guest
...browser window? I have been trying the following which doesnt work.

<?php

echo "<a href=\"http://www.mywebpage.com\"
target=\"_blank\">Visit my web page</a>";

?>
My mistake, somehwere between trying and then putting the code i used here i fixed it. it does work. my mistake, thanks for letting me know
 
echo "<a href='httP;//www.mywebpage.com' target='_blank'>Vist my web page</a>"

You don't need to put \" just use (')
 
Back
Top