Hi All,
I read on this site that it's possible to get the x, and y coordinates from a jpg, from one php script into another, I cannot get it to work. Any ideas?
The First page is -> "page.php"
==============================================
<?php
print "<form method=\"post\" action=\"getdata1.php\" name=\"point\">";
print "Click on a city to diplay the information<br>";
print "<input type=\"image\" src=\"irelandmap.jpg\" height=\"500\" width=\"500\" hspace=\"10\" vspace=\"5\" border=\"3\" align=\"middle\">";
$Location = !isset($_POST['Location'])? NULL : $_POST['Location']; //checks to see it it's already used.
print "<select name=\"Location\">";
print "<option value=\"echo $Location;\" SELECTED>echo $Location;</option>";
print "<option value=\"Dublin\">Dublin</option>";
print "<option value=\"Kerry\">Kerry</option>";
print "</select>"
print "<input type=\"submit\" name=\"submit\" value=\"Try Me!\">";
print"</form>";
?>
This brings up the jpg that I have specified, but when I click on the image I want to be able to make a decision in the called form by using point_x and point_y
Here's the getdata1.php file that I call from the above script
I try to echo the point_x and point_y, but it doesnt work. I put in the "echo BEFORE" and "echo AFTER" to show myself that it was processing the form.
==============================================
<?php
echo BEFORE;
echo $POST['point_y'];
echo $POST['point_x'];
echo AFTER;
?>
I have tried it the way I read on this site, but to no avail. :-(
Any help is greatly appriciated!
Thanks,
Gaz