php-Pictures as submit for submission

Source: Internet
Author: User

In the ASP, but not so good oh! See examples: submit_0.php and submit_1.php are as follows:

<!--文件submit_0.php -->
<form action="submit_1.php" method=post>
<input type=image src="exa.gif" name="sub1">
</form>

The following code shows the coordinates of the clicked

<?php
#文件get.php
echo '您鼠标点的横坐标为:'.$sub1_x.'<br>';
echo '您鼠标点的纵坐标为:'.$sub1_y.'<br>';
?>

Description

One, $sub 1_x and $sub1_y two variables automatically generated

Second, the generated variable is: the name of the submission of the picture plus "_x" or "_y", respectively, representing the horizontal ordinate

Finally: Everyone can play your wisdom, use it to achieve a lot of good results

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.