Actual for You
#1 in Business Subscribe Email Print

You are here: Home > Internet and Businesses Online > Web Development > Form Checking - Verifying Name Using PHP Ereg

Tags

  • following
  • google
  • managers
  • allowing these
  • allow spaces
  • other words

  • Links

  • Home Based Business - Niche Marketing Opportunities Made Simple
  • The Ins And Outs Of Bad Credit Home Loans
  • Vitamin B-12 Deficiency. Are Your at Risk?
  • Actual for You - Form Checking - Verifying Name Using PHP Ereg

    Small Business Franchise Opportunities: Window of Success for an Entrepreneur
    If you require funding and advice while opening a small business, a small business franchise may provide an excellent opportunity for you as an entrepreneur. It offers virtually endless advantages to the entrepreneur. Some of the major advantages that you can enjoy through such franchising include brand recognition, employee or management training, and an established model.One of the
    >Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words,
    Don't Close Your Eyes Or Let Deaf Ears Fall Upon You
    To listen to your customer is important, and to hear your customer is critical. But, to see what actions they take is the lifeline to your business.Recently, I was giving an introductory presentation of the Life Enrichment course to a group of Real Estate agents.The objective was to sell the agents on participating in the Hypmovation Life Enrichment eight -session, six-week cou
    One important use of Regular Expressions (Regex) is to verify fields submitted via a form. In this article, we attempt to write an expression that is able to verify the user's first name, middle name, last name or just names in general.

    The expression should allow names such as "Mary", "Mr. James Smith" and "Mrs O'Shea" for example. So the challenge here is to allow spaces, periods and single quotation marks in the name field and reject any other characters.

    Elimination Technique

    We try to identify and detect all illegal characters in the name field. I came up with the following list:

    Punctuations: ~`!@#$%^&*()=+{}|:;<>"/?,

    Numerics: 0-9

    Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words, t

    Online Poker Affiliate Program
    One of the newest phenomena’s on cable television has been the rise in popularity of televised poker tournaments. This has led to an increase in interest in poker games and the creation of even more poker rooms on the Internet. The competition for players among these poker rooms is fierce and now you can capitalize on this competition and make some money without playing poker. Simply sign up
    r's first name, middle name, last name or just names in general.

    The expression should allow names such as "Mary", "Mr. James Smith" and "Mrs O'Shea" for example. So the challenge here is to allow spaces, periods and single quotation marks in the name field and reject any other characters.

    Elimination Technique

    We try to identify and detect all illegal characters in the name field. I came up with the following list:

    Punctuations: ~`!@#$%^&*()=+{}|:;<>"/?,

    Numerics: 0-9

    Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words,

    5 Things To Avoid With Your Internet Marketing Venture
    Just like everything in the world there are the do’s and don’ts you should be familiar with when starting an internet marketing company. In order to build a successful internet marketing company you must be aware of the readers’ needs and wants. Certain aspects of internet marketing can be a downfall and set your business back. Here are 7 things to avoid with your internet marketing company.
    the challenge here is to allow spaces, periods and single quotation marks in the name field and reject any other characters.

    Elimination Technique

    We try to identify and detect all illegal characters in the name field. I came up with the following list:

    Punctuations: ~`!@#$%^&*()=+{}|:;<>"/?,

    Numerics: 0-9

    Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words,

    Brokerage with Google Adsense
    A Broker, according to the Concise Oxford Dictionary 1964, is a person who acts as a middleman. Today some would prefer the term Agent; hence we have Insurance Agents, Real Estate Agents and agents representing any number of Industries and Companies.Now there is a way to broker better deals for more Google Adsense income.Brokerage Agents are used a lot in business in the Middle
    to identify and detect all illegal characters in the name field. I came up with the following list:

    Punctuations: ~`!@#$%^&*()=+{}|:;<>"/?,

    Numerics: 0-9

    Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words,

    Performance Appraisal - Ten Stupid Things Managers Do To Screw It Up
    Performance appraisals aren't fun. But a lot of the time they are agonizing because managers do really dumb things, ending up destroying a process that is important to everyone (or should be). Appraisals are always going to be a little bit stressful for everyone, but these errors guarantee that the point of appraisals -- improving performance, is lost in the shuffle.Stupid Thing #1
    >Noticed that I left out the empty space ( ), period (.) and single quotation mark (') because we are allowing these 3 characters to pass the verification. In other words, the verification will fail if the name field contains any of the punctuations or numerics above.

    The Regex

    Now, the hardcore part. The regex pattern I came up with is as follows:

    ([[:digit:]]|[~`!@#$%^&*()_=+{}|:;<>"/?,]|[|]|-)+

    Let me briefly explain what this pattern means. The expression can be represented by:

    (expression1 | expression2 | expression3 | expression4 | expression5)

    What we are trying to do here is to match the name field to the patterns in expression 1, 2, 3, 4 or 5. If you look at the regex closely, you will see that expression1 is actually [[:digit:]].

    Expression2 is:

    [~`!@#$%^&*()_=+{}|:;<>"/?,]

    Notic

    HTTP = HTML link (for blogs, profiles,phorums):
    <a href="http://www.actual4u.com/article/86911/actual4u-Form-Checking--Verifying-Name-Using-PHP-Ereg.html">Form Checking - Verifying Name Using PHP Ereg</a>

    BB link (for phorums):
    [url=http://www.actual4u.com/article/86911/actual4u-Form-Checking--Verifying-Name-Using-PHP-Ereg.html]Form Checking - Verifying Name Using PHP Ereg[/url]

    Related Articles:

    Corporate Branding - Don't Forget Your CDs!

    Why Bother to Have an Employee Handbook?

    What's In Your Marketing Arsenal?

    Bookmark it: del.icio.us digg.com reddit.com netvouz.com google.com yahoo.com technorati.com furl.net bloglines.com socialdust.com ma.gnolia.com newsvine.com slashdot.org simpy.com shadows.com blinklist.com