Publisher review:Protection against SQL Injection Attack is a simple function that will give you some protection against an SQL Injection attempt. Below is a simple function that will give you some protection against an SQL Injection attempt. The sample script retrieves the form values entered into the textboxes 'txtUsername' and 'txtPassword' and assigns them to variables 'sUsername' and 'sPassword'.
The next line of code calls the function IllegalChars and passes in the variables as parameters.The function IllegalChars holds an array of illegal characters and words, it loops through these checking for their presence against our variables using the InStr function.
If any are present in either of our variables then IllegalChars returns False. In that scenario the visitor will be redirected to the file 'no_access.asp'.
Protection against SQL Injection Attack is a ASP.NET script for Snippets scripts design by Michael Wall.
It runs on following operating system: Windows.
Protection against SQL Injection Attack is a simple function that will give you some protection against an SQL Injection attempt.
Operating system:Windows