# Invalid form help

**URL:** https://forum.kirupa.com/t/invalid-form-help/26027
**Category:** flash
**Created:** [July 18, 2003, 5:25pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027 "2003-07-18T17:25:59Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Domo](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@Domo](https://forum.kirupa.com/u/Domo)
#### Post date: [July 18, 2003, 5:25pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/1 "2003-07-18T17:25:59Z")

</div>

Ive managed to build a proper contact form with the help of a few members here at kirupaforum 🙂

I was wondering if anyone could help me with a problem im having.

I have 3 input fields on my contact form, name, email, and message (var’s). On my “send” button, the actionscript checks to see that if any info in any of those fields is missing, it does not send the email.

I have made a little red text box “Invalid/Missing info” and given it the var “error”. What I want to do is have the actionscript check if there is something not filled out on the form, it displays this little error message. Also, I want it to check if there is an “@ and .” symbols typed in the email part of the form, and if there isnt, to display the error message.

Can anyone help me out with this? Ive attached the fla file below… and it’s just about finished, ive even made the error var and everything :beam:

Thanks,

Domo

Hmm… seems like hte fla is too big to attach… instead you can grab it here: 66.118.183.203/contactform2.fla

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 18, 2003, 5:49pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/2 "2003-07-18T17:49:32Z")

</div>

Here

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 18, 2003, 7:13pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/3 "2003-07-18T19:13:38Z")

</div>

Thanks… but it doesnt really work…at first, if for example you only fill out 1 field and sit send… the error message appears. If you clear that and type in the other input fields making the first one blank… it sends ☹

And if you dont put a @ or . in the email part… it still sends ☹

Think you could help me out again? :nerd:

Thanks a lot!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 18, 2003, 8:54pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/4 "2003-07-18T20:54:03Z")

</div>

bump… _help_

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 18, 2003, 11:42pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/5 "2003-07-18T23:42:37Z")

</div>

Here

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2003, 2:13am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/6 "2003-07-19T02:13:30Z")

</div>

thanks… it almost works!!!

but…

as soon as you launch the form… and hit send… it sends ☹

also if you just type in the name field… it sends… ☹ same with the message field

think you could fix that please? i would have no idea how to do it.

Thanks a million!!! :toad:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2003, 11:21am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/7 "2003-07-19T11:21:49Z")

</div>

Here… hope this is the last one 😛

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2003, 1:58pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/8 "2003-07-19T13:58:13Z")

</div>

Thanks!!

Its got a few more bugs but im sure i can fix em!!

Domo

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 19, 2003, 7:52pm UTC](https://forum.kirupa.com/t/invalid-form-help/26027/9 "2003-07-19T19:52:08Z")

</div>

No problem 😉  
[edit] what bugs? [/edit]

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2003, 1:55am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/10 "2003-07-20T01:55:02Z")

</div>

None… seems like I fixed them up with my 1337 AS sk177s rofl 😛

Thanks again for your assistance

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2003, 2:43am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/11 "2003-07-20T02:43:57Z")

</div>

here’s one to look at, full of ideas

[http://www.bigjolt.com/](http://www.bigjolt.com/) … go to “the Lab” … then “php mailer”

It has tons of goodies built in

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2003, 2:44am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/12 "2003-07-20T02:44:40Z")

</div>

You’re welcome 😉  
You can make a more precise validation though… I just checked if there were only 1 “@” symbol and if the “.” comes at least 2 positions after the “@”.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [July 20, 2003, 2:55am UTC](https://forum.kirupa.com/t/invalid-form-help/26027/13 "2003-07-20T02:55:35Z")

</div>

thanks again claudio… ive got a question about the php part of the mailer in the server side forum 😉
