# Log in submission

**URL:** <https://forum.kirupa.com/t/log-in-submission/207573>\
**Category:** flash\
**Created:** [November 19, 2006, 11:36am UTC](https://forum.kirupa.com/t/log-in-submission/207573 "2006-11-19T11:36:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![snowmanone](https://avatars.discourse-cdn.com/v4/letter/s/85e7bf/32.png) [@snowmanone](https://forum.kirupa.com/u/snowmanone)\
**Post date:** [November 19, 2006, 11:36am UTC](https://forum.kirupa.com/t/log-in-submission/207573/1 "2006-11-19T11:36:32Z")

</div>

Hi,

I have the following problem. I created a very simple log in with two input textfields and a submission button. The problem is that people would type in their log in informations and then hit enter, which results in a page break for the password input textfield. I tried a few things like setting the input textfield to single line which did not make a difference. Then I tried to apply to on enter key action but had to realise that you can only apply this action to a buuton and not a textfield. Any help would be apreciated. I am working with flash 8 on a mac with osx…

on (release) {

if (name.text == “student” && password.text == “student”) {  
gotoAndStop(“workPlacements”);

} else if (name.text == “admin” && password.text == “admin”) {  
gotoAndStop(“workPlacements”);

} else

false\_txt.text = “invalid password or username”

}
