I have a var that passes a javascript function ...
$newtarget = "javascript:parentPass('$diritem')"; // actual code
This works fine, but I need to write some code that will look at the string and perform some logic
so if var $diritem = product
if instring("product") { // b.s. code
do this
} else {
do this
}
what would the proper php code be?
thanks,
-p