dispector
08-09-2005, 04:34 AM
alright i have a variable called $image
now i use that in an image tag to display an image, then under that i print the same variable for a little caption
ex.
print "<img src='http://www.domain.com/os/$currentFile' width='150' border='1'>";
print "<br>";
print "Name: ";
print "$currentFile";
print "<br><br>";
WHICH DISPLAYS
|--------------|
|--------------|
|----hello.jpg--|
|--------------|
|--------------|
hello.jpg
now my question is, how can i remove the .jpg from the caption area?
now i use that in an image tag to display an image, then under that i print the same variable for a little caption
ex.
print "<img src='http://www.domain.com/os/$currentFile' width='150' border='1'>";
print "<br>";
print "Name: ";
print "$currentFile";
print "<br><br>";
WHICH DISPLAYS
|--------------|
|--------------|
|----hello.jpg--|
|--------------|
|--------------|
hello.jpg
now my question is, how can i remove the .jpg from the caption area?