I have introduced a search facility that takes customers straight to a product if they enter the code but it doesn't find the product unless the capitalisation matches and most if not all of my product codes are in capitals. Does anyone have a fix for this please? I'm sure it's simple bit of code I need somewhere ! Here is the script I use:
<FORM METHOD="POST" ACTION="http:/cgi-bin/ss000002.pl">
<td valign=middle noWrap align=left width="10%">
<INPUT TYPE="HIDDEN" NAME="NOLOGIN" VALUE="1">
<INPUT TYPE="text" NAME="PRODREF" SIZE="15" value="Product Code"
onFocus="this.value='';this.style.background='#FFFFFF'">
</td>
<td valign=bottom noWrap align=left>
<input type="image" border="0" name="ACTION" src="quicksearch.gif"
alt="Product Code Search (case sensitive)">
</td>
<input TYPE=HIDDEN NAME="PR" VALUE="-1">
<input TYPE=HIDDEN NAME="TB" VALUE="A">
<input TYPE=HIDDEN NAME="SHOP" VALUE="NETQUOTEVAR:SHOPID">
<!--<INPUT TYPE="submit" VALUE="Lookup">-->
</td>
</tr>
</FORM>
<FORM METHOD="POST" ACTION="http:/cgi-bin/ss000002.pl">
<td valign=middle noWrap align=left width="10%">
<INPUT TYPE="HIDDEN" NAME="NOLOGIN" VALUE="1">
<INPUT TYPE="text" NAME="PRODREF" SIZE="15" value="Product Code"
onFocus="this.value='';this.style.background='#FFFFFF'">
</td>
<td valign=bottom noWrap align=left>
<input type="image" border="0" name="ACTION" src="quicksearch.gif"
alt="Product Code Search (case sensitive)">
</td>
<input TYPE=HIDDEN NAME="PR" VALUE="-1">
<input TYPE=HIDDEN NAME="TB" VALUE="A">
<input TYPE=HIDDEN NAME="SHOP" VALUE="NETQUOTEVAR:SHOPID">
<!--<INPUT TYPE="submit" VALUE="Lookup">-->
</td>
</tr>
</FORM>
Comment