Jump to content
Larry Ullman's Book Forums

Recommended Posts

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

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

 Share

×
×
  • Create New...