# Idiotic question - really simple, promised

**URL:** <https://forum.kirupa.com/t/idiotic-question-really-simple-promised/212428>\
**Category:** Uncategorized\
**Created:** [January 11, 2007, 1:24am UTC](https://forum.kirupa.com/t/idiotic-question-really-simple-promised/212428 "2007-01-11T01:24:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hunson](https://avatars.discourse-cdn.com/v4/letter/h/977dab/32.png) [@Hunson](https://forum.kirupa.com/u/Hunson)\
**Post date:** [January 11, 2007, 1:24am UTC](https://forum.kirupa.com/t/idiotic-question-really-simple-promised/212428/1 "2007-01-11T01:24:09Z")

</div>

so this is the script i used :

if (name\_txt.text != ‘’ && email\_txt.text != ‘’ && subject\_txt.text != ‘’ && message\_txt.text != ‘’) {

it’s actually a contact form where users input their name, email and subject.

the question is, how do i make sure that the email slot is an email address again?  
i remembered reading 1 tutorial that says that all you have to do is make sure the slot is filled with at least a “@” and a “.”.

how do you insert that in the action script i have above?

thanks.
