I have a webpage where a user submits a form containing an email field and a confirm email field.

**How do I check to make sure both of these fields equal the same thing?**

```
<form>
Email: <input type="text" name="email"><br /><br />
Confirm Email: <input type="text" name="confirmemail"><br /><br /><br /><br />
<input type="submit" value="Submit">
</form>

```