I've altered the NMS guestbook.pl script slightly so it prints the guests name with a hyperlink to their email address - instead of their homepage.
The problem I have is that if they leave out their email address (or it's invalid), their name isn't printed in the guestbook.
This is the altered code:
if ($inputs{username}){
if ($linkmail) {
$_ .= qq(<a href="mailto:$escaped{username}">);
$_ .= "$escaped{realname}</a>";
} else {
$_ .= "$escaped{realname}";
}
}
if ($inputs{'url'}) {
$_ .= qq(<a href="$escaped{'url'}"> - Homepage</a>);
} else {
$_ .= " ";
}
This is from the NMS version of the Matt's script archive guestbook.pl
Any ideas?