How to validate Email Address in HTML DB Application

Hi,
I have delevoped one Employee Login Details form in HTML DB. But i am unable to validate that email address as i find html db is not supporting String functions like indexOf(char c), substring(int) ect. So please can anybody help me to know how to validate email address that it has @ and . symbol or not.
Thanks in advance.

user529382,
You may be able to use Regular Expressions instead, if you do a search in this forum for 'regex' you should find a few hits.
While I agree that using a regular expression is a great way to verify that the user has entered an email address that conforms to the regular expression rules, it is still nothing more than that....conforming to the regular express rules.
The only way to 100% confirm that an email address is 'valid', is to actually send an email to it, so what I tend to do is to get the user to enter their email twice (in a user registration screen for example), that way you can minimize the chance of 'typos', then send out a 'verification email' that the user has to click a link on to verify they have received it (I'm sure you've seen this type of system before), only when the confirmation is received would I then make the account 'active'.
Hope this helps.

Similar Messages

  • How to import email addresses from yahoo

    how to import email addresses from yahoo

    See:
    *http://help.yahoo.com/l/us/yahoo/contacts/impexp/email/;_ylt=AtR4x2nVc9gwLrhuPWeKFQofUndG
    *http://help.yahoo.com/l/us/yahoo/contacts/impexp/email/contactsimpexp-41.html;_ylt=AmYBdKJeiYVI1vgfvtKf.KRrinpG

  • How to include email address of the consignee in ORDERS05 purchase orders?

    Helllo,
    how can the email address of the consignee be included to the address data in purchase orders of the type ORDERS05?
    The email address should fit somewhere in here:
    < E1EDKA1 >
    < PARVW > WE </ PARVW >
    < LIFNR > 1234</ LIFNR >
    < NAME1 > COMPANYNAME </ NAME1 >
    < NAME2 > A.NONYMUS </ NAME2 >
    < STRAS > 1 Highstreet </ STRAS >
    < STRS2 > 1.C.110 </ STRS2 >
    < ORT01 > Ratingen </ ORT01 >
    < PSTLZ > 40882</ PSTLZ >
    < TELF1 > +49 2102 123456 </ TELF1 >
    The email address is part of the ADDRESS DETAILS of the purchase order.
    The dynpro field is: SZA1_D0100-SMTP_ADDR
    Is it possible to send this address only to a specific vendor?
    Your help is very much appreciated!
    Karsten

    Hello there,
    Following is the URL for the widget.
    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=3072025
    Thanks,
    Vish

  • I do forgot my Apple ID security question, please help me how to rescue email address or how to reset Apple ID security questions?

    I do forgot my Apple ID security question, please help me how to rescue email address or how to reset Apple ID security questions?

    From another post:
    On your browser, whether Safari, Google Chrome or otherwise, navigate tohttps://appleid.apple.com.
    Once here click Manage your Apple ID button and sign into your iCloud account. Here, on the left side select Password and Security and this will list options on the right side. You should be able to see an option to reset your security questions.
    Note other links in realtion to rescue email address:http://support.apple.com/kb/HT5312
    If you cannot see or reset your security question, or even obtaining an error, then you would have to contact Apple directly: http://support.apple.com/kb/HE57. Here you would explain the issue, transfer you to an Account Security Agent who will be able to veritfy your identity and assist you in the resetting of you security questions.

  • I have an iPad and want to know how to delete email addresses for those that I have sent email to.

    I have an iPad 2 and want to know how to delete email addresses for those that I have sent mail to.

    Email addresses that are not in your Contacts app but which still show up in Mail will disappear after a period of time when they are unused. Just ignore them and they will eventually go away.

  • How to read Email address from TO field

    Hi,
    I am try to read email from outlook using JACOB api. now i can able to read all email from outlook.
    my problem is while i am read TO field for Mail , its return the display name instead of email address.
    please any one tell me how to read email address from TO,CC and BCC field.
    Thanks in advance,
    With Regards,
    Ganesh Kumar.L

    Hi all,
    I am solved my problem,
    First i am getting the Recipients object from mail item object,
    and recipient object i can get all my required details.
    Thanks,
    by
    ganesh

  • How to transfer email addresses from aol to 4s iPhone

    New user (and thrilled), but not sure how to transfer email addresses. Is this possible?

    My bad. I misunderstood what you were trying to say.
    If you have the email addresses listed in your contacts application on your computer, they should transfer over to the iPhone when you sync the iPhone with iTunes. Depending on how many contacts you have, you could enter the addresses manually. That's what I did, but I don't have a lot of contacts.

  • How to change email address login for this forum

    I no longer have the email address I use for this forum and was wondering how to change it if possible?

    One of these links should help you:
    http://www.info.apple.com/support/howtoid.html
    Apple ID Assistance Form/Feedback

  • How to send email addresses to Mailchimp

    Hi,
    How would I allow the email addresses, which hva been entered into the user registration form to be sent to the mailing list in Mailchimp?
    Here is the code for the page which contains the form with the email field (If this helps):
    <?php
    if (!isset($_SESSION)) {
      session_start();
    $MM_authorizedUsers = "1";
    $MM_donotCheckaccess = "false";
    // *** Restrict Access To Page: Grant or deny access to this page
    function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) {
      // For security, start by assuming the visitor is NOT authorized.
      $isValid = False;
      // When a visitor has logged into this site, the Session variable MM_Username set equal to their username.
      // Therefore, we know that a user is NOT logged in if that Session variable is blank.
      if (!empty($UserName)) {
        // Besides being logged in, you may restrict access to only certain users based on an ID established when they login.
        // Parse the strings into arrays.
        $arrUsers = Explode(",", $strUsers);
        $arrGroups = Explode(",", $strGroups);
        if (in_array($UserName, $arrUsers)) {
          $isValid = true;
        // Or, you may restrict access to only certain users based on their username.
        if (in_array($UserGroup, $arrGroups)) {
          $isValid = true;
        if (($strUsers == "") && false) {
          $isValid = true;
      return $isValid;
    $MM_restrictGoTo = "loginadmin.php";
    if (!((isset($_SESSION['MM_Username'])) && (isAuthorized("",$MM_authorizedUsers, $_SESSION['MM_Username'], $_SESSION['MM_UserGroup'])))) {  
      $MM_qsChar = "?";
      $MM_referrer = $_SERVER['PHP_SELF'];
      if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = "&";
      if (isset($_SERVER['QUERY_STRING']) && strlen($_SERVER['QUERY_STRING']) > 0)
      $MM_referrer .= "?" . $_SERVER['QUERY_STRING'];
      $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer);
      header("Location: ". $MM_restrictGoTo);
      exit;
    ?>
    <!--HEADER CONTENT START --><head>
    <style type="text/css">
    body{ margin:0px; background:#FFF;}
    .header {
        height:165px;
        background:#FFF;
        border:1px solid#CCC;
        position:fixed;
        width:100%;
        top:0px;
    </style>
    <link href="stylesheet.css" rel="stylesheet" type="text/css" />
    </head>
    <div class="header"><?php include('defaultheader.php');?></div>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <!--HEADER CONTENT END -->
    <html>
    <title>Create New Account</title>
    </html>
    <?php require_once('Connections/drama_database.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $editFormAction = $_SERVER['PHP_SELF'];
    if (isset($_SERVER['QUERY_STRING'])) {
      $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
    if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "newaccountform")) {
      $insertSQL = sprintf("INSERT INTO users (username, password, firstname, lastname, email, userlevel) VALUES (%s, %s, %s, %s, %s, %s)",
                           GetSQLValueString($_POST['username2'], "text"),
                           GetSQLValueString($_POST['password2'], "text"),
                           GetSQLValueString($_POST['firstname2'], "text"),
                           GetSQLValueString($_POST['lastname2'], "text"),
                           GetSQLValueString($_POST['email2'], "text"),
                           GetSQLValueString($_POST['userlevel'], "int"));
      mysql_select_db($database_drama_database, $drama_database);
      $Result1 = mysql_query($insertSQL, $drama_database) or die(mysql_error());
      $insertGoTo = "adminusermanagement.php";
      if (isset($_SERVER['QUERY_STRING'])) {
        $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
        $insertGoTo .= $_SERVER['QUERY_STRING'];
      header(sprintf("Location: %s", $insertGoTo));
    mysql_select_db($database_drama_database, $drama_database);
    $query_newuser = "SELECT * FROM users";
    $newuser = mysql_query($query_newuser, $drama_database) or die(mysql_error());
    $row_newuser = mysql_fetch_assoc($newuser);
    $totalRows_newuser = mysql_num_rows($newuser);
    ?>
    <div align="center">
        <h1>Create New Account</h1>
    </div>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css">
    <div align="center">
    <form action="<?php echo $editFormAction; ?>" method="POST" name="newaccountform" id="newaccountform">
      <table width="416" border="0">
        <tr>
          <td width="94" class="formtag">First Name</td>
          <td width="315"><span id="sprytextfield6">
            <label for="firstname2"></label>
            <input name="firstname2" type="text" class="formfield" id="firstname2" />
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td class="formtag">Last Name</td>
          <td><span id="sprytextfield7">
            <label for="lastname2"></label>
            <input name="lastname2" type="text" class="formfield" id="lastname2" />
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td class="formtag">Email</td>
          <td><span id="sprytextfield8">
          <label for="email2"></label>
          <input name="email2" type="text" class="formfield" id="email2" />
          <span class="textfieldRequiredMsg">A value is required.</span><span class="textfieldInvalidFormatMsg">Invalid format.</span></span></td>
        </tr>
        <tr>
          <td class="formtag">Username</td>
          <td><span id="sprytextfield9">
            <label for="username2"></label>
            <input name="username2" type="text" class="formfield" id="username2" />
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td class="formtag">Password</td>
          <td><span id="sprytextfield10">
            <label for="password2"></label>
            <input name="password2" type="text" class="formfield" id="password2" />
            <span class="textfieldRequiredMsg">A value is required.</span></span></td>
        </tr>
        <tr>
          <td class="formtag">Userlevel</td>
          <td><label for="userlevel"></label>
            <select name="userlevel" class="formfield" id="userlevel">
              <option value="0" selected="selected">User</option>
              <option value="1">Admin</option>
            </select></td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input name="createuser" type="submit" class="button" id="createuser" value="Create Account" /></td>
          </tr>
      </table>
      <table width="147" border="0">
      <tr>    </tr>
      <tr>    </tr>
      <tr>    </tr>
      <tr>    </tr>
      </table>
      <input type="hidden" name="MM_insert" value="newaccountform">
    </form>
    </div>
    <script type="text/javascript">
    var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
    var sprytextfield7 = new Spry.Widget.ValidationTextField("sprytextfield7");
    var sprytextfield8 = new Spry.Widget.ValidationTextField("sprytextfield8", "email");
    var sprytextfield9 = new Spry.Widget.ValidationTextField("sprytextfield9");
    var sprytextfield10 = new Spry.Widget.ValidationTextField("sprytextfield10");
    </script>
    <?php
    mysql_free_result($newuser);
    ?>

    Im wondering how to integrate my email field on my database with mailchimp.
    I don't think you can.  But you can ask MailChimp.
    I want every user who creates an account on my website to have their email automatically sent to mailchimp, without having to fill in a subscribe to newsletter form.
    I think that's a really bad idea. What if your users don't want the newsletter?  People must be made aware of what they are signing-up for and who that information is being shared with.
    Nancy O.

  • Extract email address from html

    Hi,
    I am trying to extract "email address"  from an html output query. How would I do that?
    I am on CF9.
    example:
    Query col1:
    <html><head></head><body>today they emailed about it from (mailto:[email protected]) ...hello there and here</body></html>

    Argh!  No!
    God I hate it when people knock together a regex like this and go "Look!  Email address validation!"
    Before one starts down this road, one should read the RFC (http://tools.ietf.org/html/rfc5322, summarised here: http://en.wikipedia.org/wiki/Email_address).
    Your own regex fails my spamtrap email address (for example: [email protected]), because you've forgotten that a + is a legitimate character in the local part of an email address.  Along with a bunch of other completely legit characters.
    Reading on through the RFC you will realise than ANYTHING is valid in the local part of an email address, provided it's quoted (double-quote being another character your regex doesn't accept).
    If someone doesn't want to give you their valid email address, they won't.  I can give you [email protected], and that will pass.  If I do want to give you my address, you should make sure your code will actually accept it!
    I can understand wanting to make sure the punter doesn't key their email address in incorrectly, but your method doesn't help here.  It'd pass [email protected], despite the fact that it should be [email protected]  "Close" is not good enough in these cases.
    The only sensible way of doing this is to ask them to type it in twice.  This will assist people who don't just roll their eyes and copy and paste what they typed in the first box into the second box, wondering why you're wasting their time.  So a typo will be transferred, so it's no help.
    If you really want to get a person's email address, deprive them of something until they respond to an email that you end them.  At the email address they specified. Because they actually don't mind you having their email address.  This only works if you're not simply trying to harvest email addresses for your own benefit, and not the benefit of your subscribers.
    Bottom line: email address is a mug's game, and one not often played by people who know the rules.
    Adam

  • HT5624 forgot my password and the email used is no longer in use... but I bought my apps with that user? how to update email address of it and password? Thanks!!

    I lost my password and my email used to create the account is no longer working... how to reset the email and the password... all apps I bought was under the user created.

    In that case you will need to contact iTunes Support, http://apple.com/emea/support/itunes/contact.html (select Account Security as your help topic)
    Even after you reset your security questions, it is highly recommended you add a rescue email address. To do so, log in at appleid.apple.com and click on Password and Security. Answer the questions and then click on "Add Rescue Email Address:"

  • Validate email address with regex

    All,
    I am trying to split and validate one/multiple email addresses like below. Ive got the split based on delimiter(, ) to work well but i cant get the validation to work using oracle REGEX
    examples:
    1.  "[email protected], [email protected], [email protected], [email protected],"
    2.  "[email protected]"
    3.  "[email protected],"
    So how can i validate the emails as described above?
    using oracle 11g rel.2
    thanks in advance...regards.

    Hi,
    Gor_Mahia wrote:
    All,
    I am trying to split and validate one/multiple email addresses like below. Ive got the split based on delimiter(, ) to work well but i cant get the validation to work using oracle REGEX
    examples:
    1.  "[email protected], [email protected], [email protected], [email protected],"
    2.  "[email protected]"
    3.  "[email protected],"
    So how can i validate the emails as described above?
    using oracle 11g rel.2
    thanks in advance...regards.
    You haven't described what you want.
    Whenever you have a question, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002
    Do you want an expression that tells whether a string is a valid e-mail address or not?  You might start by looking to see if the string is divided into 3 parts by an @ sign, and then by a dot, with at least 1 letter in each of the 3 parts. Here's one way to do that:
    REGEXP_LIKE ( email_addr
                , '[[:alpha:]].*@.*[[:alpha:]].*\..*[[:alpha:]]'
    If the expression above returns FALSE, you can be sure that that string is not a valid email address.

  • How to add email address based on email alias? Get-Mailbox | Set-Mailbox -EmailAddresses @{add= $_.Alias + "@TEST"}

    I can't get this to work via the pipeline, but if I type in someones specific email address to get, it works fine.  Any help on the syntax?
    Thanks!
    Get-Mailbox [email protected] | Set-Mailbox -EmailAddresses @{add= $_.Alias + "@TEST"}                                        
    : NOT WORKING.  This just adds "@TEST" to the email addresses
    $test = Get-Mailbox [email protected]
    Get-Mailbox [email protected] | Set-Mailbox -EmailAddresses @{add= $test.Alias + "@TEST"}            : WORKING.  This adds "me@TEST" to the email addresses

    Wow, lots to try!  Thanks for the help.
    Can you help me understand what this is doing?
    @{Add="$($_.Alias)@TEST"}
    I understand $_ is the current object in the pipeline, but how do I interpret the $($_.Alias)?
    Sure, the extra $() surrounding $_.Alias is known as the subexpression operator:
    http://ss64.com/ps/syntax-operators.html
    Basically this allows you to use a property directly inside of a string. It's important to use double quotes in this instance, so the string can expand.
    EDIT: Here's an example you can run with Get-Mailbox:
    Get-Mailbox |
    ForEach { Write-Host "This will append @TEST to the username: $($_.SamAccountName)@TEST" }
    Don't retire TechNet! -
    (Don't give up yet - 12,700+ strong and growing)

  • How to change email address on iCloud account?

    Not sure how it happened while registering my wife's new iPhone, but the email address that appeared on iCloud was her iTunes address and not her .me address. We would like to change the iCloud addres to her .me address. How?

    Welcome to the Apple Community.
    Firstly, you need to change your details with Apple,  Start here, change your country if necessary and go to manage your account.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > store, scroll down and tap your ID)

  • How to change email address on iCloud

    My email address was hacked into so I had to change it. Which caused me to change my apple ID also. Now I am not sure how to change my email address on Icloud. It still show my old apple ID. Do I have to delete the whole account an start it over? Not smart with computers and did not want to fight holiday crowd at the apple store for help. Any advice would be appreciated. Thanks.

    Kodester wrote:
    What can I do?
    do what it says. delete the account and re-add it.

Maybe you are looking for

  • Creation of new logical systems in IS Retail

    Hi All,   "For every new store opened, create one Logical System"...i have come across this sentence in 1 of the documents which spaeks about creation of logical systems So should i create one Logical System for every store and if i am sending Gift V

  • Address Book + .Mac Family Plan

    On my laptop I have one address book - my family uses my laptop. When I go to sync - everything including my kids friends are sync into my address book. It's odd when you scroll through and see Bobby's name. I'm considering signing up for .Mac Family

  • VIDEO IN on new Quad Core iMac?

    Hello FOlks. I have a Digital Night Vision Monocular I need to connect video in on my Quad Core iMac. Can anyone tell me WHICH CABLE is the cheapest and best for this? I need a standard video like from a camcorder plug, I've seen converters with mult

  • Inconsistent entries between driver_aliases and path_to_inst

    Hi, I see the following in my solaris intel box. bash-2.03# grep iprb /etc/driver_aliases iprb "pci8086,1229" iprb "pci8086,1029" bash-2.03# grep iprb /etc/path_to_inst "/pci@0,0/pci8086,100c@6" 0 "iprb" bash-2.03# 100c is the inte pro/1000 gig NIC a

  • Macbook pro can't recognize mic on headphone

    I plugged in my iphone earpods, the speaker is good but i cant use the microphone.