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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:31:19+00:00 2026-05-23T09:31:19+00:00

My knowledge is shallow since I’ve only studied PHP/HTML/MySQL as a hobby, so please

  • 0

My knowledge is shallow since I’ve only studied PHP/HTML/MySQL as a hobby, so please be gentle.

ESCAPE is intended to help programmers prevent SQL injections. Yes, programmers should be smarter and just addslashes(), but in light of the recent LulzSec stupidity, I think it would be a good move by W3C to implement a new form input method that makes it easier for programmers to implement security.

I only know PHP, so I’ll speak to that. Basically, while before we had

$safeTagSearch = addslashes($_GET["tagSearchRaw"]);

we will now have

$safeTagSearch = $_ESCAPE["tagSearchRaw"]);

If tagSearchRaw = "cats in hats", it will be slashed as ☃"cats in hats☃". (The unicode snowman is to illustrate how this will work for different languages with different escape sequences.)

The $_ESCAPE code will recognize the ☃ as the form escape character and do a tiny bit of processing before passing \"cats in hats\" to $safeTagSearch.

Is this at all feasible?

  • 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-05-23T09:31:19+00:00Added an answer on May 23, 2026 at 9:31 am

    I don’t think it’s feasible at all because it is requiring the web programming language to be aware of the specific SQL syntax you’re using. That functionality is the domain of the database provider (such as ODBC, OLEDB, SQL Server Native, Jet, whatever) to be able to convert all inputs into the SQL-specific-variant syntax necessary to get the job done in the database with no errors and no SQL injection.

    The cure isn’t to give web developers a crutch for their misuse of concatenated SQL statements, but instead for web developers to use formal parameters on commands (or at least to use parameter placeholders such as ? on ad-hoc queries) instead of just squishing SQL fragments and parameter strings together and hoping it works right.

    If you offer $_ESCAPE to supposedly cure people who brainlessly use $_GET, then you’ll introduce other problems through the brainless use of that, such as storing in the database strings that have been escaped twice (oops). That is just going to confuse the issue.

    An additional issue this brings up is the problem of not knowing whether the string you’re using is safe or unsafe. A resolution I would support is the construction of strongly-typed String objects that indicate what kind of string it is (HTMLString, UnsafeString, SQLString, etc.).

    Then if you try to do something like <SQLStringFragment> + <UnescapedString> you will get a compile-time or run-time error for trying to concatenate two different kinds of strings without first converting them to the same type.

    The DB Library could be extended to offer conversion utilities like SQLStringFromParameterValue that would accept an unescaped string and return an escaped one based on the properties of the current connection.

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

Sidebar

Related Questions

Excuse my lack of knowledge. Im creating a a php/mysql website which will store
My knowledge of xml and php is somewhat basic but have been able to
Is knowledge of HTML beyond the basics a prerequisite for learning CSS? I am
according to my knowledge, this feature already exists in PHP. lets look at the
My JavaScript knowledge is shallow, so I can't figure this out after some significant
I know that serializing an object is (to my knowledge) the only way to
My knowledge of MySQL is very basic here... so I'm just wondering if I
(Probably just knowledge of the Unix library is enough to answer this, so please
With my only ORM knowledge being L2S/EF, I was surprised when the following code
I have a good knowledge of PHP. But I also want to learn technologies

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.