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>" Quote Link to comment 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>"; Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
frijole Posted March 11, 2008 Author Share Posted March 11, 2008 thanks, its workin. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.