chop Posted February 22, 2016 Share Posted February 22, 2016 I want a link so a user can "Bail" out at this point in the script though the variable $image_id must be sent if the link is clicked. This works, as a constant: <a href="edit_image.php?id=151" target="_self">BAIL</a> I've tried many different configurations but can't get it to append as a variable an therefore my GET[] doesn't get it on the other end. None of these work: <?php $image_id="151"; ?> <a href="edit_image.php?id=.$image_id." target="_self">BAIL</a> <a href="edit_image.php?id=$image_id" target="_self">BAIL</a> <a href="edit_image.php?id=.'$image_id'." target="_self">BAIL</a> <a href="edit_image.php?id='.$image_id.' " target="_self">BAIL</a> thanks for assistance Link to comment Share on other sites More sharing options...
Larry Posted February 24, 2016 Share Posted February 24, 2016 What does the HTML source look like when you use PHP to set the value? It's not clear in your sample code that you're using PHP to echo the $image_id Link to comment Share on other sites More sharing options...
chop Posted March 1, 2016 Author Share Posted March 1, 2016 I worked on this until my brain hurt. I went to bed and slept 12 hours then looked at the code again and immediately came up with a simpler design that works well. So I guess the correct answer was to get some sleep. I appreciate the reply, however. thanks... Link to comment Share on other sites More sharing options...
Larry Posted March 1, 2016 Share Posted March 1, 2016 Always a good answer! Thanks for letting us know. Link to comment Share on other sites More sharing options...
Recommended Posts