Problem with $_POST

This should be an easy one that I can't see.

Code from Page 1:

echo '<td style= "text-align:left"';
echo ' font color= "black" class="Body_Labels">';
      echo '<a href="Image_Update.php?id=';
      echo $_SESSION['Misc'];
      echo '">';
      echo $ROW_PICT['DESCR'];
      echo "</a>";
echo "<br><br>";
echo "</td>";

The display of the source code from this page shows:
<a href="Image_Update.php?id=400 Madison Avenue">400 Madison Avenue</a><br><br></td>

Image_Update.php loads with the following on the url line:
http://mrbreeze.net/Image_Update.php?id=400%20Madison%20Avenue

So far so good.

When I try to get the data with:
$work = $_POST['id'];

I get the following error:
Undefined index: id in /home/mrbreeze/public_html/Image_Update.php on line 16
breeze351Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
You cannot access url variables with $_POST - those are for variables posted to the script with a form

Access the ID with $_GET['id'] instead

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
breeze351Author Commented:
I told you it was easy.  I stared at this stupid bit of code and couldn't see it!!!
Thanks
Glenn
Julian HansenCommented:
It happens to all of us - you are welcome.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.