@nap0leonDec 13.2007 — #Depending on the language your page is written in and what the link on the image that is clicked is... there's tons of ways and JavaScript might not be the best choice.
Let's call your pages "page1" and "page2".
Let's presume page1 has two buttons ("button1" and "button2") on it that both link to page2.
If the user clicks on button1, you want a field on page2 to say "Alpha".
If the user clicks on button2, you want a field on page2 to say "Beta".
Your images on page1 need some way to tell page2 what the user clicked.
For my example, I will presume you are passing the value in the URL, this could be changed to be a form-field value or session variable, etc.
So, on page1, your images would look like [CODE] <a href="page2.asp?choice=Alpha"><img src="button1.gif"></a> <a href="page2.asp?choice=Beta"><img src="button2.gif"></a> [/CODE]
If you want to set the value using Classic ASP... [CODE] <input type=text id="Choice" value="<%=Request.QueryString("choice")" /> [/CODE]
In JavaScript it's a tad more complex. This presumes that "choice" will always be the first item in the URL and your form's name is "form1". [CODE] <input type=text id="txtChoice" value="" />
<script> var Choice = document.location.search.substring(1).split('=')[1]; document.form1.box1.value = Choice <script> [/CODE]