I am trying to select something from a dropdown and search the string for a specific word. Below is the script I have. It's a bit strange because when I print the select variable $Product02 it outputs, but when I try to use it in a STRPOS it does not work. Anyone have any ideas?
<FORM name=form action="test.html" method=post>
<SELECT onchange='javascript:form.submit()' name=Product02>
<OPTION value=0 selected>None Selected
<OPTION value='Intel Motherboard2'>Intel Motherboard2</OPTION>
<OPTION value='Intel Motherboard1'>Intel Motherboard1</OPTION>
</SELECT>
<?
$intel=strpos($Product02, 'intel');
print "TEST : Whats stored in Product02: $Product02<BR>";
print "Position of Intel: $intel";
?>
</FORM>