Home
Manage Your Code
Snippet: Check if number (ASP)
Title: Check if number Language: ASP
Description: This function is used to prevent a SQL Injection Attack. If the parameter is not numerical, it is sent back as null. Views: 113
Author: Steve Ollinger Date Added: 10/7/2008
Copy Code  
function checkParameter(intParam)
				
	If len(intParam) > 0 and isNumeric(intParam) then
		checkParameter = intParam
	else
		checkParameter = null
	end if

end function