# How to use the textInput

**URL:** <https://forum.kirupa.com/t/how-to-use-the-textinput/330897>\
**Category:** flash\
**Created:** [April 3, 2013, 6:11pm UTC](https://forum.kirupa.com/t/how-to-use-the-textinput/330897 "2013-04-03T18:11:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![harry1](https://avatars.discourse-cdn.com/v4/letter/h/919ad9/32.png) [@harry1](https://forum.kirupa.com/u/harry1)\
**Post date:** [April 3, 2013, 6:11pm UTC](https://forum.kirupa.com/t/how-to-use-the-textinput/330897/1 "2013-04-03T18:11:53Z")

</div>

Hello All, I have been learning ActionScript 3 for about two weeks . I was reading the Adobe documentation in regards to the TextInput component. I was a little confused. I want to create a login system for my website. I have two TextInput fields for a username and password that’s it! . My question is, to validate that the username and password are entered correctly and to dispatch the details to a MySQL database which textInput event am I required to use? Would Event.COMPLETE alone handle all this or would be it necessary to use more than one Event? Thank You
