I'm having a problem passing values to variables in a function. The first line of the function is:
function PrintImage($image1, $image2, $image3)
The values I'm trying to pass are:
PrintImage("PumpNeedle.gif", "PumpNozzle-Std.gif", "PumpNozzleScrew-HiFlow.gif");
The statements within the function read a filename from a directory and compare the name read with the name supplied (such as PumpNeedle.gif). If there's a match, the graphic is displayed on the page.
The code works flawlessly until I try to turn it into a function. When the function is called all I get is a blank page. The testing I've done seems to indicate that the values in the call line aren't being passed to the variables in the 'function' line.
Doubtless the solution is simple and I'm just not seeing it. Any advice would be much appreciated.