# A word matching game

**URL:** <https://forum.kirupa.com/t/a-word-matching-game/278307>\
**Category:** Uncategorized\
**Created:** [December 26, 2008, 6:40pm UTC](https://forum.kirupa.com/t/a-word-matching-game/278307 "2008-12-26T18:40:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gencoglu](https://avatars.discourse-cdn.com/v4/letter/g/898d66/32.png) [@gencoglu](https://forum.kirupa.com/u/gencoglu)\
**Post date:** [December 26, 2008, 6:40pm UTC](https://forum.kirupa.com/t/a-word-matching-game/278307/1 "2008-12-26T18:40:08Z")

</div>

Hi,  
I am tring to create a simple quiz game in which students are supposed to click/drag the correct word into inputbox and if the answer is correct his /her score will be +10  
Now I placed ten “inputboxes” on the stage .How can I code it so that the word entered is correct and I get 10p ?  
“the words are=” am…is…are"

```php
    on(press){ 
if(txt1.text=="are") 
{ 
score++ 
}else{ 
score?? 
} 
} 

```

my first imput box has the var name “txt1”  
and the second text box(dynamic) has the instance name" score"  
thanks
