# Using Javascript to fill variable, display image

**URL:** <https://forum.kirupa.com/t/using-javascript-to-fill-variable-display-image/178474>\
**Category:** Uncategorized\
**Created:** [February 10, 2006, 8:32pm UTC](https://forum.kirupa.com/t/using-javascript-to-fill-variable-display-image/178474 "2006-02-10T20:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darley](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@darley](https://forum.kirupa.com/u/darley)\
**Post date:** [February 10, 2006, 8:32pm UTC](https://forum.kirupa.com/t/using-javascript-to-fill-variable-display-image/178474/1 "2006-02-10T20:32:05Z")

</div>

I have a text input box that I want to enter a word into and then click submit.  
Upon clicking submit, the word that was entered into the box will add itself into the following string:

```php
http://ichart.finance.yahoo.com/z?s=HERE IS THE VARIABLE&amp;t=1y&amp;q=l&amp;l=on&amp;z=m&amp;p=e20,e50,e200&amp;a=v,m26-12-9,r14,ss

```

This will then be used to display the image on the page.

Ideas?
