Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9154529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:26:30+00:00 2026-06-17T12:26:30+00:00

This my code I am getting email address from database through ajax and mysql

  • 0

This my code

I am getting email address from database through ajax and mysql it is giving me value in . so in below FUNCTION comparing() i am retriving data from span to compare with the textfield data. but it is not comparing properly.
Please help me out

function validate(pageForm) 
    {
    /************Getting error values in return values***********************/
    var returncomparing = "";

    /*********************************/
      //FIELD WHICH YOU HAVE TO VALDATE

      returncomparing += comparing(pageForm.email);
     /********************************************/


      if (returncomparing != "") 
      {

          document.getElementById('error').innerHTML = returnIndustry;

      }

          return false;
    }

After giving correct EMAIL still it is giving Error … (Please Provide Login User ID)

function comparing(pageForm){
    var error = "";
     // var fetchedEmail=document.forms["pageForm"]["email_fetch"].value;
     var em=document.forms["pageForm"]["email"].value;
     //var emai = document.getElementById('emlTst').value;
     var email = document.getElementById('txtHint').innerHTML;
     //document.getElementById('emlTst').value = email;
    if(em != email){
        document.getElementById('error_email2').innerHTML="Please Provide Login User ID";
        pageForm.style.borderColor = 'red';
        error='5';
     }
     else  if(em == email){
            document.getElementById('error_email2').innerHTML="";
            error = "";
         }
         else {
             document.getElementById('error_email2').innerHTML="";
             pageForm.style.borderColor = '#c7c7c7';
             }
  return error;
}
/*************************************************************/
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:26:31+00:00Added an answer on June 17, 2026 at 12:26 pm
     var em = $('#email').val().toLowerCase();
     var email = $('#txtHint').val().toLowerCase();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Earlier this morning my code for getting a user's email address from Facebook was
I am having a problem getting this code to work. Basically I Go from
I'm getting a segmentation fault everytime i want to run this code : from
I'm trying to update a email field in Mysql through php. i keep getting
I'm trying to access the email address in the DetailsView but getting this error:
I am getting email addresses out of the Address Book from a Cocoa Touch
Im getting an error using this code below. I have tried multiple ways and
I am using the following code to read an email address from a DataGridView
I am using OAuth-Sample-Client code to send invitation from email address via Linked Invitation
I'm having a problem with getting this code to print out to file due

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.