I've been messing around with this for an hour. I'm hoping I'm missing something obvious and someone can point out my stupidity. I'm trying to check if INV images are on/off.
This always falls into "Not Hidden". What stupid thing am I overlooking? Thanks!
Code:
debugalways(visit_url("account.php?tab=inventory"));
//ON: <input type="checkbox" value="1" checked="checked" name="flag_invimages"/>
//OFF: <input type="checkbox" value="1" name="flag_invimages"/>
if (index_of(visit_url("account.php?tab=inventory"), "value=\"1\" name=\"flag_invimages\"/>") > 0) {
debugalways("Inventory Images are Hidden.");
} else {
debugalways("Inventory Images are not Hidden.");
}
This always falls into "Not Hidden". What stupid thing am I overlooking? Thanks!