earthone Posted October 6, 2009 Share Posted October 6, 2009 I finally got things together and now the echo is not working can someone tell me what I am doing wrong? The page I want to echo is working fine I just cant echo the information to another page. All we are trying to do is echo the content of the sections to another page. Thank you. Here is the echo page. <?php echo '<a href="http://mywebsite.com/index.php?text=this">'; $text=$_GET['this']; ?> The code of the page I am trying to echo information from <?php $text = $_GET['text']; if (!$text) {die('No text selected');} elseif($text=='this') {echo 'This Text goes here'; } elseif($text=='that') {echo '1'; } ?> Link to comment https://forums.phpfreaks.com/topic/176648-echo-not-workingi-finally-got-things-together-and-now-the-echo-is-not-working-ca/ Share on other sites More sharing options...
cags Posted October 6, 2009 Share Posted October 6, 2009 Erm, huh? Link to comment https://forums.phpfreaks.com/topic/176648-echo-not-workingi-finally-got-things-together-and-now-the-echo-is-not-working-ca/#findComment-931384 Share on other sites More sharing options...
Mark Baker Posted October 6, 2009 Share Posted October 6, 2009 Try viewing source in your browser. Or alternatively try using correct html anchor syntax so that something is displayed in a borowser: <?php echo '<a href="http://mywebsite.com/index.php?text=this">Click here</a>'; ?> Link to comment https://forums.phpfreaks.com/topic/176648-echo-not-workingi-finally-got-things-together-and-now-the-echo-is-not-working-ca/#findComment-931423 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.