For a guide to the choosing ASP or PHP, click here
Home >> If Statements >> Check if a String Contains a Certain SubString This code sample shows how to check one string to see if it contains part of another string
<% ' declare and set our variable dim strFullName strFullName = "Tommy Ron Bobby" ' now check to see if our variable ' strFullName contains the word Ron ' and remember, this is cAsE sEnsItIvE if (instr(1, strFullName, "Ron") > 0) then ' If if does contain Ron, then display it response.write(strFullName & " contains Ron") end if %> What is ASP?
What is PHP?