Announcement

Collapse
No announcement yet.

Asking People to Verify Their Email Address

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Asking People to Verify Their Email Address

    Tried implementing the above from the Advanced user guide and it doesn't seem to work properly, or at least how I would expect!

    If I test this out on a checkout page enterting a different address in each field then then rather than flag the error when clicking next it simply continues to the next page. Clicking back shows that the repeated address has simply been populated with the first address?

    Is this how this should work? As this would mean that a mistake in the first email prompt would copy it to the second box? Effectively making this pointless!

    #2
    Jon

    Hang fire, I'll find the code I used. All it does is compares the two email addresses and ensures they are the same, it does not validate them or anything.

    I've also got the same bit of code in my Contact us form:
    http://burns.writemedia.co.uk/cgi-bi...CTION=SHOWFORM

    We're in test mode at the moment so it doesn't matter what you do in there.

    Mike
    Boy, this is a big learning curve.....and YES I've got my crampons on!
    www.shop.burns-pet-nutrition.co.uk

    Comment


      #3
      HERE WE ARE:

      THE JAVASCRIPT:

      <script language=JavaScript>
      <!--
      function checkemailaddress()
      {
      var x=document.getElementById('emailb1').value;
      var y=document.getElementById('emailb2').value;
      //alert (x);
      //alert (y);
      if ( x != y )
      {
      alert('The Email Addresses you have entered do not match');
      return false;
      }
      //alert('The email addresses match');
      return true;
      }
      // -->
      </script>

      THE FORM CODE:
      **********************************************************************

      <tr>
      <td>
      <actinic:block if="%3cactinic%3avariable%20name%3d%22DeliverPrompt012Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
      <Actinic:Variable Name="DeliverPrompt012"/>
      <actinic:block if="%3cactinic%3avariable%20name%3d%22DeliverPrompt012Required%22%20%2f%3e">*</span></actinic:block>
      </td>
      <td>
      <input type="text" name="DELIVEREMAIL" size="20" maxlength="40" id="emailb1" value="<Actinic:Variable Name="DeliverEmail"/>" />
      </td>
      </tr>
      <tr>
      <td>
      <actinic:block if="%3cactinic%3avariable%20name%3d%22DeliverPrompt012Required%22%20%2f%3e"><span class="actrequired"></actinic:block>
      Confirm Email Address<!--<Actinic:Variable Name="DeliverPrompt012"/>-->
      <actinic:block if="%3cactinic%3avariable%20name%3d%22DeliverPrompt012Required%22%20%2f%3e">*</span></actinic:block>
      </td>
      <td>
      <input type="text" name="DELIVEREMAIL" size="20" maxlength="40" id="emailb2" value="<Actinic:Variable Name="DeliverEmail"/>" />
      </td>
      </tr>


      **************************************************************************
      CODE ON THE 'NEXT' BUTTON

      <input type="submit" name="ACTION" value="<actinic:variable encoding="html" name="NextButton" />" onclick="return checkemailaddress()" />



      **************************************************************************
      COMPLETE LAYOUT:

      <actinic:variable name="DeliveryFieldsVisible" />
      <span class="actregular"><b><Actinic:Variable Name="DeliverTitle"/></b></span>
      <br /><br />

      <!-- Address Book --><Actinic:Variable Name="AddressBook"/><!-- End of Address Book -->
      <!-- Location info for address book --><Actinic:Variable Name="LocationInfo"/><!-- End of location info for address book --><BR />
      <span class="actrequired">* </span><Actinic:Variable Name="RequiredFields"/> <span class="actrequired"><Actinic:Variable Name="Highlighted"/>.</span>
      <!-- XML tags for formatting of the address list in B2B mode -->
      <Actinic:VAR NAME=ADDRESS_COLUMNS VALUE=3/>

      <Actinic:VAR NAME=ADDRESS_FORM0 VALUE="
      <INPUT TYPE=HIDDEN NAME=ADDRESSSELECT VALUE=%s>
      <B>%s</B><BR>%s,<BR>%s,<BR>%s,<BR>%s, <B>%s</B>,<BR><B>%s</B>
      "/>
      <Actinic:VAR NAME=ADDRESS_FORM1 VALUE="
      <U><B>%s:</B></U>
      <INPUT TYPE=RADIO NAME=ADDRESSSELECT VALUE=%s%s></BR>
      <B>%s</B><BR>%s,<BR>%s,<BR>%s,<BR>%s, <B>%s</B>,<BR><B>%s</B>
      "/>
      <Actinic:VAR NAME=ADDRESS_FORM2 VALUE="
      <U><B>%s:</B></U>
      <INPUT TYPE=RADIO NAME=ADDRESSSELECT VALUE=%s%s></BR>
      <B>%s</B><BR>%s,<BR>%s,<BR>%s,<BR>%s, <B>%s</B>,<BR><B>%s</B>
      "/>

      <Actinic:VAR NAME=ADDRESS_TITLE0 VALUE=""/>
      <Actinic:VAR NAME=ADDRESS_TITLE1 VALUE="%s:"/>
      <Actinic:VAR NAME=ADDRESS_TITLE2 VALUE="%s:"/>

      <Actinic:VAR NAME=ADDRESS_TITLE10 VALUE=""/>
      <Actinic:VAR NAME=ADDRESS_TITLE11 VALUE=""/>
      <Actinic:VAR NAME=ADDRESS_TITLE12 VALUE="
      <INPUT TYPE=RADIO NAME=ADDRESSSELECT VALUE=0 CHECKED>
      %s:
      "/>

      <Actinic:VAR NAME=ADDRESS_TABLE VALUE="
      %s
      <TABLE WIDTH=<actinic:variable name="ACTSTDWIDTH" /> BORDER=0 CELLSPACING=0 CELLPADDING=1 BGCOLOR=%s><TR><TD>
      <TABLE WIDTH=100%% BORDER=0 CELLSPACING=0 CELLPADDING=4 BGCOLOR=%s>
      %s
      </TABLE>
      </TD></TR></TABLE>
      %s
      "/>
      <!-- End of B2B address formatting tags -->
      <Actinic:ADDRESSES TYPE=DELIVERY/>

      <Actinic:ADDRESSES TYPE=DELIVERYFORM>
      <script language=JavaScript>
      <!--
      function checkemailaddress()
      {
      var x=document.getElementById('emailb1').value;
      var y=document.getElementById('emailb2').value;
      //alert (x);
      //alert (y);
      if ( x != y )
      {
      alert('The Email Addresses you have entered do not match');
      return false;
      }
      //alert('The email addresses match');
      return true;
      }
      // -->
      </script>
      <table border="0" width="<actinic:variable name="ACTSTDWIDTH" />" cellspacing="2" cellpadding="3" class="checkout">
      <actinic:variable name="CheckoutPrompt" value="Delivery Salutation" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt000Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Name" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt001Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Job Title" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt002Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Company Name" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt003Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Address Line 1" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt004Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Address Line 2" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt005Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Address Line 3" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt006Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Address Line 4" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt007Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Postal Code" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt008Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Country" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt009Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Phone" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt010Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Fax" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt011Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery Email" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt012Visible%22%20%2f%3e" />
      <actinic:variable name="CheckoutPrompt" value="Delivery User Definable" if="%3cactinic%3avariable%20name%3d%22DeliverPrompt013Visible%22%20%2f%3e" />
      </table>
      </Actinic:ADDRESSES>

      <br />
      <br />
      <hr size="1" width="<actinic:variable name="ACTSTDWIDTH" />" align="left" />
      <actinic:variable name="DeliveryFieldsVisible" />
      Boy, this is a big learning curve.....and YES I've got my crampons on!
      www.shop.burns-pet-nutrition.co.uk

      Comment


        #4
        thanks...

        Thanks for posting this I'll give it a try!

        Comment


          #5
          Actually that link I gave you does not work very well as it asummes you are on the Actinic site:

          Here is the better one, just click on the Contact Us button at the top.

          http://burns.writemedia.co.uk

          Mike
          Boy, this is a big learning curve.....and YES I've got my crampons on!
          www.shop.burns-pet-nutrition.co.uk

          Comment

          Working...
          X