ballhogjoni Posted April 26, 2007 Share Posted April 26, 2007 I can't get the "<<Previous" part to show up correctly when I open it with the browser. All it pulls up is "<" and cuts out "<Previous". I tried to escape the < using the back slash but the browser prints the backslash as well. Any Ideas? <?php echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><\<\Previous</a> "; ?> Link to comment https://forums.phpfreaks.com/topic/48842-solved-echo-string-error/ Share on other sites More sharing options...
per1os Posted April 26, 2007 Share Posted April 26, 2007 Escaping only works with an actual programming language. for HTML < is what you want: <?php echo "<a href=\"".$_SERVER['PHP_SELF']."?page=$prev\"><< Previous</a> "; ?> Link to comment https://forums.phpfreaks.com/topic/48842-solved-echo-string-error/#findComment-239385 Share on other sites More sharing options...
ballhogjoni Posted April 26, 2007 Author Share Posted April 26, 2007 thank you Link to comment https://forums.phpfreaks.com/topic/48842-solved-echo-string-error/#findComment-239387 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.