Menu

confirm email

jarb
2009-09-11
2013-06-03
  • jarb

    jarb - 2009-09-11

    i need the ability for my email form to confirm email address after they re-type it. any ideas how to integrate this? here is the website usdamortgagesource(.)com for reference.

     
    • jarb

      jarb - 2009-09-11

      ok, so i figured it out after hours of searching. i replaced this code in my html page

      <tr><td><label class="formFieldQuestion">E-mail&nbsp;*<br>
                            <input class=mainForm type=email name=field_5 id=field_5 size=16 value="" style="background-image:url(imgs/email.png); background-repeat: no-repeat;  padding: 2px 2px 2px 25px;" />
                      <br>
                      </label></td>
                        <td><span class="formFieldQuestion">Confirm E-mail&nbsp;*<br />
                        <input class="mainForm" type="email" name="field_6" id="field_6" size="16" value="" style="background-image:url(imgs/email.png); background-repeat: no-repeat;  padding: 2px 2px 2px 25px;" />
                      </span></td>
                      </tr>

      to this:

      <tr><td>E-mail *<br/>
      <input name="field_5" type="email" id="field_5" size="16" value="" maxlength="40" style="background-image:url(imgs/email.png); background-repeat: no-repeat;  padding: 2px 2px 2px 25px;"/></td>
      <td>Confirm E-mail *<br/>
      <input name="field_6" type="email" id="field_6" size="16" maxlength="40"  style="background-image:url(imgs/email.png); background-repeat: no-repeat;  padding: 2px 2px 2px 25px;"
      onchange="if(this.form.field_5.value==''){
      alert('You must first enter your email address above');
      this.value='';this.form.enter_email.focus()}
      else if(this.value!=this.form.field_5.value){
      alert('Your email addresses do not match\nPlease try again.');
      this.value='';this.form.field_5.value='';
      this.form.field_5.focus()}"/></td>
      </tr>

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.