Hi
The "default list value does not display" topic has been fixed. However, now the default image does not want to display.
I have a form, with 7 images. There is a list box next to it. When u choose an option in the list box, the image changes accordingly.
My problem is: When no options have been selected, the list box defaults to a particular option and the image next to it should too. Here's a bit of the code:
while ( list( $file, $option ) = each( $icons ) )
{
$IconString .= "<option value=\"$file\"";
if ( $file == $selected )
{
$IconString .= " selected";
$iconfound = "yes";
}
$IconString .= ">$option</option>\n";
//ERROR STARTS HERE
if ( $iconfound != "yes" )
{
$IconString = str_replace("nodetails.gif\">", "nodetails.gif\" selected>", $IconString);
$SelectIcon = "../images/outlook_icons/nodetails.gif";
$IconOptions = $SelectIcon ;
}
//ERROR ENDS HERE
} //end-while
return $IconString;
If anyone has a solution, please share...
Thanks
Tasneem