Hi,
I am going to use the following code
foreach $category (@fields) {
print "<OPTION VALUE=\"$db_script_link_url&Category=$category&view_records=1\">$category";
}
I have no problem in listing the actual data, but when I have the link, it includes the spaces and the "&" (Vitamins & Supplements) in the link. When that happens, I get "0" search result, because it has the spaces. How can I get rid of them only in the link (Value="$category"), but not in the actual data that will be the drop down list
Thank You
I am going to use the following code
Code:
@fields = split (/\,/, $db_select_fields{'Category'}); foreach $category (@fields) {
print "<OPTION VALUE=\"$db_script_link_url&Category=$category&view_records=1\">$category";
}
I have no problem in listing the actual data, but when I have the link, it includes the spaces and the "&" (Vitamins & Supplements) in the link. When that happens, I get "0" search result, because it has the spaces. How can I get rid of them only in the link (Value="$category"), but not in the actual data that will be the drop down list
Thank You