# IF, Else if registraition form

**URL:** <https://forum.kirupa.com/t/if-else-if-registraition-form/157508>\
**Category:** Uncategorized\
**Created:** [August 2, 2005, 1:41pm UTC](https://forum.kirupa.com/t/if-else-if-registraition-form/157508 "2005-08-02T13:41:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan\_Sorkin](https://avatars.discourse-cdn.com/v4/letter/i/8dc957/32.png) [@Ivan\_Sorkin](https://forum.kirupa.com/u/Ivan_Sorkin)\
**Post date:** [August 2, 2005, 1:41pm UTC](https://forum.kirupa.com/t/if-else-if-registraition-form/157508/1 "2005-08-02T13:41:04Z")

</div>

I’m trying to make a registraition form, but to have it I must be sure that all of the fields are field correctly , for example I want to check that pass 1 the same with the confirmation that is pass2, or e-mail it is e-mai address and nothing else. But this code below doesn’t do anything like this. please help.

> on (release, keyPress “\<Enter\>”) {  
> if (txt\_FirstName.text != “”) {  
> trace(“First Name was accepted”);  
> } else {  
> trace(“Please Reenter your Firs Name”);  
> txt\_FirstName.text = “Please enter your Firs Name”;  
> }  
> if (txt\_LastName.text != “”) {  
> trace(“Last Name was accepted”);  
> } else {  
> trace(“Please enter your Last Name”);  
> txt\_LastName.text = “Please enter your Last Name”;  
> }  
> if (txt\_EMail.text = “”) {  
> trace(“E-mail address was accepted”);  
> } else if(txt\_EMail.text != “”) {  
> trace(“Please Reenter your E-mail address”);  
> txt\_LastName.text = “Please enter your E-mail”;  
> }  
> if (txt\_NewPassI.text=“”) {  
> trace(“please check your password”);  
> } else if (txt\_NewPassI.text=txt\_NewPassII.text) {  
> trace(“The password was accepted”);  
> }  
> if (txt\_Address.text != “”) {  
> trace(“Address was accepted”);  
> } else {  
> trace(“Please Reenter your Address.”);  
> }  
> if (txt\_Phone.text != “”) {  
> trace(“Phone number was accepted”);  
> } else {  
> trace(“Please Reenter your phone number address”);  
> }  
> }
