I’m trying to get the values from a HTML post. I can get it working with option values from a form using the Form Action post but what I’m trying to do is using a href from an image TAG – so when the user clicks on the image thumbnail it displays the full image along with some more information from the database - the additional information being gathered using the id value posted through, corresponding to the image clicked upon.
However whenever I open a page using the format http://test.php?id=10
The PHP returns an empty value:
Here’s the section of the HTML:
<TD vAlign=center Align=center width=300 height=20><A href="test.php?id=10"><IMG height=113 src="images/5760t.jpg" border=0><BR>Helga Matura <BR>Raisonne No: 124</A></TD>
And here’s the PHP (actually this is the entire file test.php).
<?php
print "ID: $_POST[id]";
?>
Which always displays:
ID:
With no value.
I’m sure it’s something very obvious – but I’ve had a hunt around and can’t find any clues.
Really appreciate any pointers.