In JPDeni's upload mod, I understand that the pic is shown with the record. Is it possible to show a link to the picture instead?
Aug 6, 1999, 8:54 AM
Veteran / Moderator (8669 posts)
Aug 6, 1999, 8:54 AM
Post #2 of 2
Views: 234
Sure.
Instead of
|; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">|;
last GRAPHIC;
}
}
print qq|
you would use
|; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<a href= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">Picture</a>|;
last GRAPHIC;
}
}
print qq|
Haven't tried it, but it should work.
------------------
JPD
[This message has been edited by JPDeni (edited August 06, 1999).]
Instead of
Code:
### Wherever you want your graphic to print out, use the following |; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<img src= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">|;
last GRAPHIC;
}
}
print qq|
you would use
Code:
### Wherever you want a link to your graphic to print out, use the following |; # to close off a previous print qq| statement
$ALLOWED_EXT =~ s/\\.//g;
$ALLOWED_EXT =~ s/\$//g;
@extensions = split (/\Q|\E/o,$ALLOWED_EXT);
GRAPHIC: foreach $extension (@extensions) {
if (-e "$SAVE_DIRECTORY/$rec{$db_key}.$extension") {
print qq|<a href= "$SAVE_DIRECTORY_URL/$rec{$db_key}.$extension">Picture</a>|;
last GRAPHIC;
}
}
print qq|
Haven't tried it, but it should work.
------------------
JPD
[This message has been edited by JPDeni (edited August 06, 1999).]

