# Having a pop-up window when fields arn't filled in

**URL:** <https://forum.kirupa.com/t/having-a-pop-up-window-when-fields-arnt-filled-in/205395>\
**Category:** Uncategorized\
**Created:** [October 29, 2006, 2:31am UTC](https://forum.kirupa.com/t/having-a-pop-up-window-when-fields-arnt-filled-in/205395 "2006-10-29T02:31:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [October 29, 2006, 2:31am UTC](https://forum.kirupa.com/t/having-a-pop-up-window-when-fields-arnt-filled-in/205395/1 "2006-10-29T02:31:37Z")

</div>

hey all,

i have 2 fields and if these fields arn’t filled in and the user hits submit i need a popup window to appear and just say “sorry you must complete the form to continue”  
yet when i try this it just keeps going to the next frame instead of showing the popup menu :S:S  
This code is on my submit button  
here is my code so far:

```auto
    if (fname != "" && email != "") {
        status = "Begin Login Process - Wait...";
        loadVariablesNum("reglogin.php", 0, "POST");
        //loadVariablesNum("register2.php", 0, "POST");
        loadVariablesNum("questions2.php", 0, "GET");
        loadVariablesNum("answers.php", 0, "GET");
        _root.gotoAndStop("quiz");
        _root.details._alpha = 100;
    } else {
        _root.details._alpha = 0;
    }
}

```

any ideas why this isn’t working or how to get it working??

cheers 🙂
