Matt Ridge Posted November 21, 2011 Share Posted November 21, 2011 I have a script in where I need to push as a conformation, I have the script written... echo '<p>Your comments have been successfully entered. Would you like to <a href="1-1.php' . $_GET['id'] . '">view the final report</a>?</p>'; The problem is that there is no '=' sign between the php and the ID... is there a way to make it so that it shows up? Quote Link to comment Share on other sites More sharing options...
Psycho Posted November 21, 2011 Share Posted November 21, 2011 You should pass variables using a name/value pair echo "<p>Your comments have been successfully entered. Would you like to <a href=\"1-1.php?id={$_GET['id']}\">view the final report</a>?</p>"; Quote Link to comment Share on other sites More sharing options...
Matt Ridge Posted November 21, 2011 Author Share Posted November 21, 2011 You should pass variables using a name/value pair echo "<p>Your comments have been successfully entered. Would you like to <a href=\"1-1.php?id={$_GET['id']}\">view the final report</a>?</p>"; First thing I tried, didn't work... This is what I got and now it works. echo '<p>Your comments have been successfully entered. Would you like to <a href="1-1.php'. "?id=" . $_GET['id'] . '">view the final report</a>?</p>'; Quote Link to comment Share on other sites More sharing options...
creata.physics Posted November 21, 2011 Share Posted November 21, 2011 Please mark your topic as solved if you've fixed the issue. Quote Link to comment Share on other sites More sharing options...
Matt Ridge Posted November 21, 2011 Author Share Posted November 21, 2011 Doing it now, sorry it took so long, this was posted at 12:00... I was exhausted 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.