frijole Posted March 11, 2008 Share Posted March 11, 2008 I am trying to create a link, as you can see below. How can I get this to echo with the quotes? echo "<a href="<?php echo $_SERVER['PHP_SELF'] ?>"."?video=good">Add to DB?</a>" Link to comment https://forums.phpfreaks.com/topic/95551-not-sure-how-to-deal-with-quotes-for-this-link/ Share on other sites More sharing options...
Northern Flame Posted March 11, 2008 Share Posted March 11, 2008 echo "<a href=\"" . $_SERVER['PHP_SELF'] ."?video=good\">Add to DB?</a>"; Link to comment https://forums.phpfreaks.com/topic/95551-not-sure-how-to-deal-with-quotes-for-this-link/#findComment-489149 Share on other sites More sharing options...
kenrbnsn Posted March 11, 2008 Share Posted March 11, 2008 Or use single quotes around your strings: <?php echo '<a href="' . $_SERVER['PHP_SELF'] .'?video=good">Add to DB?</a>'; ?> Ken Link to comment https://forums.phpfreaks.com/topic/95551-not-sure-how-to-deal-with-quotes-for-this-link/#findComment-489153 Share on other sites More sharing options...
frijole Posted March 11, 2008 Author Share Posted March 11, 2008 thanks, its workin. Link to comment https://forums.phpfreaks.com/topic/95551-not-sure-how-to-deal-with-quotes-for-this-link/#findComment-489167 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.