Is this acceptable code? I have tested it and it works, but I don\'t know if it is good practice. I am basically calling data everytime someone types something into the inpu