reddavis999 Posted June 5, 2007 Share Posted June 5, 2007 Im trying to send the id information over with $_GET, ive used it before in a website ive recently completed but this time its not working. Heres the code that the search form displays if ($count>0) { while ($row = mysql_fetch_array($search)) { echo '<p>Episode: '.$row['episode'].'<br>Beer: '.$row['beer'].'</p>'; echo '<p><a href=\"moreinfo.php?id=$row[id]\">Read More...</a>'; echo '<br><hr 50%>'; } }else { echo "no results available"; } ?> However when i click on 'Read more' it goes to this address %22moreinfo.php?id=$row[id]\%22 I dont understand why it does this. Thanks,Red Quote Link to comment https://forums.phpfreaks.com/topic/54357-solved-problem-with-_get/ Share on other sites More sharing options...
Dragen Posted June 5, 2007 Share Posted June 5, 2007 if you're using single quotes for echo, don't escape double quotes: echo '<p><a href="moreinfo.php?id=' . $row[id] . '">Read More...</a>'; Quote Link to comment https://forums.phpfreaks.com/topic/54357-solved-problem-with-_get/#findComment-268813 Share on other sites More sharing options...
reddavis999 Posted June 5, 2007 Author Share Posted June 5, 2007 ahhh thanks a bunch. Quote Link to comment https://forums.phpfreaks.com/topic/54357-solved-problem-with-_get/#findComment-268819 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.