For a guide to the choosing ASP or PHP, click here
Home >> Variables >> Is a Variable a Number This code simply shows you how to implement a quick if statement to find out if a string is a number or not
<% ' declare and set two variables dim strOne, strTwo strOne = "5132" strTwo = "Tommy" ' is strOne a number? if (isnumeric(strOne)) then ' this will execute, because ' the string "5132" is a number end if if (isnumeric(strTwo)) then ' this will not execute, "Tommy" ' is not a number end if %> What is ASP?
What is PHP?