# !Help me before I go crazy!

**URL:** <https://forum.kirupa.com/t/help-me-before-i-go-crazy/192534>\
**Category:** Uncategorized\
**Created:** [June 29, 2006, 6:27am UTC](https://forum.kirupa.com/t/help-me-before-i-go-crazy/192534 "2006-06-29T06:27:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jingato](https://avatars.discourse-cdn.com/v4/letter/j/b9bd4f/32.png) [@jingato](https://forum.kirupa.com/u/jingato)\
**Post date:** [June 29, 2006, 6:27am UTC](https://forum.kirupa.com/t/help-me-before-i-go-crazy/192534/1 "2006-06-29T06:27:25Z")

</div>

OK, I’ve been searching the internet for days now and I getting very frustrated. I’m rather new with flash so please bear with me. I made a contact form in flash and what I wasnt to do is validate that the fields are filled in. I found a number of ways to do it, but none work. I found one for my email field and that works perfect its  
if (!email.length || email.indexOf("@") == -1 || email.indexOf(".") == -1) {  
getURL (“javascript:NewWindow(‘invalidemail.html’,‘redeemWin’,‘408’,‘150’,‘yes’)”);

Now, For my other boxws the submit button starts with this  
on (release) {  
if (fullname.text == null || fullname.text == “”) {  
getURL (“javascript:NewWindow(‘invalidname.html’,‘redeemWin’,‘408’,‘150’,‘yes’)”);

Then Have and else if then the email validation. The meathod above opens the invalid name file every time, evin if you enter something. I’ve also tried. if (!fullname.length == 0), that didn’t work. I found numerous tutorials that used if (!fullname eq “”) , that didn’t work either. I’ve tried a ton of different versions of all of these. but none work! I dodn’t know what to do. Please help me. I will provide the .fla file if anybody needs to take a peek at it.

Thanks so much

John

[Link to FLA](http://michaeldscustomcycles.com/contact.fla)
