www.webdeveloper.com
Results 1 to 3 of 3

Thread: Insert image into coordinates

  1. #1
    Join Date
    Mar 2010
    Posts
    14

    Question Insert image into coordinates

    Hi,

    it would be my advice to php echo to my positions, which can be obtained by clicking on the image, display the red cross?

    The coordinates are transmitting in this format:

    HTML Code:
    http://localhost/capture_the_position_of_the seats/?image.x=432&image.y=448
    Script:

    PHP Code:
    <?php

    if(isset($_GET["image_x"]))

      
    file_put_contents("soubor.txt",$_GET["image_x"].",".$_GET["image_y"]."\n",FILE_APPEND);

     echo 
    "<img src=\"http://www.stylovedarky.cz/inshop/layout/img/krizek2.gif\" />"

    ?>

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,239
    Sorry, I'm not sure what the question is here?
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Mar 2010
    Posts
    14
    Quote Originally Posted by NogDog View Post
    Sorry, I'm not sure what the question is here?
    I have a picture (attached), where I find the coordinates of black pixels. And since I do not remember any point, so you want every point at which I find coordinates, mark a red cross.

    At the coordinates using this script:

    PHP Code:
    <?php

    if(isset($_GET["obrazek_x"]))

      
    file_put_contents("soubor.txt",$_GET["obrazek_x"].",".$_GET["obrazek_y"]."\n",FILE_APPEND);

    ?>
    Coordinates Saving to an external file in this format:

    602;744

    I need to this script add just a sign that the red cross. Could you advise me how to use the solution for it?

    Thanks you for you advice.
    Attached Images Attached Images
    Last edited by MaxDJs; 12-17-2010 at 11:29 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles