php - Imagecord function is not getting accessed after clicking the submit button in form -
</head> <body> <?php function aftersubmit() { $myname = $_post['myname']; if(isset($myname)){ echo ($myname); } } function imagecord() { if(isset($xcoord) && isset($ycoord)){ $xcoord=$_post["myimage_x"]; $ycoord=$_post["myimage_y"]; echo ("x=".$xcoord); echo ("y=".$ycoord); } } if(isset($_post['submitbutton'])){ aftersubmit(); imagecord(); } ?>
imagecord() function not getting accessed, aftersubmit button in php. want click on image , after submit should display coordinates.
modified function
function imagecord() { if(isset($_post["myimage_x"]) && isset($_post["myimage_y"])){ $xcoord=$_post["myimage_x"]; $ycoord=$_post["myimage_y"]; echo ("x=".$xcoord); echo ("y=".$ycoord); } }
Comments
Post a Comment