Link to home
Start Free TrialLog in
Avatar of breeze351
breeze351

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of breeze351
breeze351

ASKER

I told you it was easy.  I stared at this stupid bit of code and couldn't see it!!!
Thanks
Glenn
It happens to all of us - you are welcome.