# Is image able to pass value to another page?

**URL:** <https://forum.kirupa.com/t/is-image-able-to-pass-value-to-another-page/263201>\
**Category:** Uncategorized\
**Created:** [June 13, 2008, 9:39am UTC](https://forum.kirupa.com/t/is-image-able-to-pass-value-to-another-page/263201 "2008-06-13T09:39:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![helloanddie](https://avatars.discourse-cdn.com/v4/letter/h/ecb155/32.png) [@helloanddie](https://forum.kirupa.com/u/helloanddie)\
**Post date:** [June 13, 2008, 9:39am UTC](https://forum.kirupa.com/t/is-image-able-to-pass-value-to-another-page/263201/1 "2008-06-13T09:39:23Z")

</div>

hi there. i will like to ask if anyone knows if the image is able to pass value to another page? if it is possible, can you teach me the codes to pass value to another page? many many thanks in advance 😃

well, this is what i know.  
\<a href= “Search.php?txtSearch=\<?php echo $txtSearch; ?\>”\>\<img src=“mag.jpg”\>\</a\>

but it seems like the values aren’t passing over to the search page.

---

<div class="post-metadata">

**Author:** ![Charleh](https://avatars.discourse-cdn.com/v4/letter/c/a9a28c/32.png) [@Charleh](https://forum.kirupa.com/u/Charleh)\
**Post date:** [June 13, 2008, 12:18pm UTC](https://forum.kirupa.com/t/is-image-able-to-pass-value-to-another-page/263201/2 "2008-06-13T12:18:49Z")

</div>

on the new page if the value is passed in the querystring as in your example

search.php?txtSearch=SomeValue

then you can retrieve the content using

$\_GET[“txtSearch”];

If the content is posted via a form then

$\_POST[“txtSearch”];
