string checking acting up
Hi all basically i am trying to check if a string starts with "<embed" or "<object" and if it doesn't then give an error, i have found out if i do this then it never works:
but if i do just one so if you remove the or bit for "<object" it works, but it won't let me do both together, any ideas?!
Hi all basically i am trying to check if a string starts with "<embed" or "<object" and if it doesn't then give an error, i have found out if i do this then it never works:
PHP:
if(substr($_POST['code'], 0, 6) != "<embed" || substr($_POST['code'], 0, 7) != "<object")
but if i do just one so if you remove the or bit for "<object" it works, but it won't let me do both together, any ideas?!





