# Goto password protected page (label)

**URL:** <https://forum.kirupa.com/t/goto-password-protected-page-label/116033>\
**Category:** Uncategorized\
**Created:** [July 14, 2004, 1:19am UTC](https://forum.kirupa.com/t/goto-password-protected-page-label/116033 "2004-07-14T01:19:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmzx](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jmzx](https://forum.kirupa.com/u/jmzx)\
**Post date:** [July 14, 2004, 1:19am UTC](https://forum.kirupa.com/t/goto-password-protected-page-label/116033/1 "2004-07-14T01:19:01Z")

</div>

anyone tell me is this not how its done?

on (release, keyPress “\<Enter\>”) {  
if (password eq “caleb”) {  
tellTarget ("\_root") {  
gotoAndStop(“private”);  
}  
} else {  
tellTarget ("\_root") {  
gotoAndStop(“error”);  
}  
}

it contains syntax error: pls any help appreciated:
