How to get all id when input enter is a string?
===

I have a sample database

    game(id, name)
        (1, 'Angry birds')
        (2, 'Angry birds v1')
        (3, 'Angry birds v2')

And input :

    <input type="text" name="game" value="Angry birds, Angry birds v1" />
    <input type="submit" name="submit" value="submit" />

How to when i submit this form is input text get all value text(`Angry birds, Angry birds v1`) => all value id(`1, 2`), How to this ideas ?
  