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

  • SEARCH
  • Home
  • 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 9126551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:03:59+00:00 2026-06-17T07:03:59+00:00

Please, some clarifications: Till now I used two steps validations (client/server) for some user

  • 0

Please, some clarifications:
Till now I used two steps validations (client/server) for some user inputs, for example – email (classic form submitting – by reloading the page).

If I use php-jquery ajax method – is it clever all the validation perform on server (because application already communicates with the server), or maybe keep some validations on the client side too.

Second, is there a better way for php mail validation than the following:

If(!filter_var($mail, FILTER_VALIDATE_EMAIL))...

And finally, is there any language, any framework, any… whatever (for web development) where all variables, once declared, are automatically available everywhere, on each page, on each file inside the project ?

  • 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-17T07:04:00+00:00Added an answer on June 17, 2026 at 7:04 am

    Remember:

    Always let the final validation to the server

    If you use Php/Ajax form handler you should validate the input at the very first submit from the user and than you send a response (202 or 0) based on the validation success.

    For the email verification, after the users send all the data and the form is complete, you can send to him a token (via Email) that let him to “activate” the account
    Something like http://www.myFakesite.com/activate.php?tkref=2423fuhr334hu (unique for every users of course)

    Last the FILTER_VALIDATE_EMAIL it’s a great validator but it doesn’t check the DNS records

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please can some one give an example describing cascading as meant in CSS and
Please can some one briefly tell me with example what does the means of
i need some clarification please: the process is essentially as follow: client fills out
I need some clarifications for ASP.NET Membership; please help me with it. I am
Can please some tell me when does the above written error occurs. I just
Please can some one explain the javacv method for the pyrDown() method. I'm trying
Please recommend some websites with a quick guide. MSDN is good but it's hard
Can some please explain the behaviour below, where, with a from date of 20060301,
Anybody please give some useful links on this topic.i need to create a content
Can anyone please share some java codes for getting started with google search api's.I

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.