# TextField validation with duplicate entries

**URL:** https://forum.kirupa.com/t/textfield-validation-with-duplicate-entries/294251
**Category:** flash
**Created:** [August 11, 2009, 12:51pm UTC](https://forum.kirupa.com/t/textfield-validation-with-duplicate-entries/294251 "2009-08-11T12:51:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pmoreira](https://avatars.discourse-cdn.com/v4/letter/p/e47774/32.png) [@pmoreira](https://forum.kirupa.com/u/pmoreira)
#### Post date: [August 11, 2009, 12:51pm UTC](https://forum.kirupa.com/t/textfield-validation-with-duplicate-entries/294251/1 "2009-08-11T12:51:43Z")

</div>

Hey guys,

Just wanted to know if anyone could help me with a problem I’m having with passing some validation in a form im creating.

For the sake of getting to the point, I have two Textfields in my form lets say \*\*email\_txt \*\*and **friendsEmail\_txt**. What I would like to do is validate the two fields to make sure the user does not put the same email address in both fields.

Im sure I need to do this via a function but I’m lost as to how to go about it. I googled for about an hour and perhaps im not qeurying it properly as I could not find any answers - Im sure there is one.

Any help anyone could provide would be great!

Thanks  
Pat
