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 8526523
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:17:45+00:00 2026-06-11T08:17:45+00:00

A google search gave me the methods to validate form fields, but I can

  • 0

A google search gave me the methods to validate form fields, but I can already construct them. My question is, which are the characters that are safe to include and which are to exclude in a form field? Specifically, username and password.

A brief explanation would be nice too.

Thanks.

  • 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-11T08:17:47+00:00Added an answer on June 11, 2026 at 8:17 am

    You need to exclude all characters you will never have inside you datas.
    Do you think it would be any sense to have special characters if your usernames/passwords must only contains alphanumeric characters ?

    Look at some REGEX for JAVA or for PHP.

    There is a regexp reference table which could be usefull too.

    If you give us more information about the langage you are using, we could maybe help us more.
    Have a good day!

    [UPDATE]
    There is the security reference which is very good and the OWASP website which is a real reference for any web security related topics, look at the OWASP Cheat Sheets.

    #**Cross-Site Scripting Vulnerabilities?**
    #for any programming language, the chars you should reject or handle properly are:
    >     <   (     )     [     ]     '     "     ;     :     /     |
    
    #for PHP, tools to handle with care:
    strip_tags(), utf8_decode(), htmlspecialchars(), strtr()
    
    #do Positive/Negative filtering
    #check Encoding
    
    #**SQL Injection ?**
    #etc...
    

    [/UPDATE]

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

Sidebar

Related Questions

I've tried every Google search term I can think of but everything I dig
How can I get Google search results from inside a program? I need to
what I have: a google search form (displayed on all pages) a wordpress page
can we provide a google search facility to a text box in java windows
Which Google API search module for Perl do you recommend? REST::Google::Search or Google::Search Ease
Doing a Google search I found several command-line SCEP clients that I can download
Yesterday morning I noticed Google Search was using hash parameters: http://www.google.com/#q=Client-side+URL+parameters which seems to
How can I implement Google Search using the Search Bar in iPad/iPhone App ?
I want to use Google search.But the search results are only from my site,
On a Google Search, I found this article: http://docs.python.org/release/1.4/lib/node201.html Which showed examples of using

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.