Gossamer Forum
Home : Products : DBMan : Customization :

Hyperlink

Quote Reply
Hyperlink
Hello,

Does enyone know how to put a hyperlink in the reply when a person has signup in the database?

Example:

You have put a record in the database. Thank you?
Please put a link to you're homepage:

<a href="http://www.adressen.com" target="_blank"><img border="0" src="../images/database/logo3_animated.gif" alt="Bezoek de HaFaBraSho Adressen-database BeNeLuxe" width="200" height="93">

<b>Bezoek de HaFaBraSho Adressen-database BeNeLuxe</b></a>

When i put this code in the html.pl i get a error.
because of the " and ' in the hyperlink.

Please help me.

Gerard

Gerard
The Netherlands
Quote Reply
Re: Hyperlink In reply to
Make sure that you have operators around these HTML codes, like the following:

Code:

print MAIL "<a href=\"http://www.adressen.com\" target=\"_blank\"><img border="0" src=\"http://www.addressen.com/images/database/logo3_animated.gif\" alt=\"Bezoek de HaFaBraSho Adressen-database BeNeLuxe\" width=\"200\" height=\"93\">
<b>Bezoek de HaFaBraSho Adressen-database BeNeLuxe</b></a>";


Regards,



Quote Reply
Re: Hyperlink In reply to
The easiest way to do this is to use different quotation marks around the text.

If you have

print "You have put a record in the database. Thank you?
Please put a link to you're homepage:

<a href="http://www.adressen.com" target="_blank"><img border="0"
src="../images/database/logo3_animated.gif" alt="Bezoek de HaFaBraSho Adressen-database BeNeLuxe"
width="200" height="93">";


you can change it to

print qq|You have put a record in the database. Thank you?
Please put a link to you're homepage:

<a href="http://www.adressen.com" target="_blank"><img border="0"
src="../images/database/logo3_animated.gif" alt="Bezoek de HaFaBraSho Adressen-database BeNeLuxe"
width="200" height="93">|;






JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Hyperlink In reply to
Hello JPDeni

Thanks for the code, but does this also mail it to the subcriber? Because that is what i want.

Thank you

-----------------------------------------------------------
print qq|You have put a record in the database. Thank you?
Please put a link to you're homepage:

<a href="http://www.adressen.com" target="_blank"><img border="0"
src="../images/database/logo3_animated.gif" alt="Bezoek de HaFaBraSho Adressen-database BeNeLuxe"
width="200" height="93">|;

-----------------------------------------------------------

Gerard
The Netherlands
Quote Reply
Re: Hyperlink In reply to
The code I gave you eliminates the problem with the quotation marks.

When do you want to send the mail?

JPD
http://www.jpdeni.com/dbman/
Quote Reply
Re: Hyperlink In reply to
After a subscibe i want to thank the subscriber and ask for placing the link to our site by a e-mail reply.

Like this:

%rec=&get_record($in{$db_key});
open (MAIL, "$mailprog") || &cgierr("unable to open mail program");
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: Uw inschrijving\n\n";
print MAIL "Muziekverenigingen Database BeNeLuxe\n";
print MAIL "-" x 80 . "\n";
print MAIL "Dit bericht wordt automatisch verzonden na inschrijving.\n\n";
print MAIL "*" x 80 . "\n";
print MAIL "Uw vereniging is opgenomen in de Muziekverenigingen Database BeNeLuxe.\n\n";
print MAIL "Mede door u kan de database groeien tot een groot adressenbestand\n\n";
print MAIL "Mocht u als secretaris door een lid zijn toegevoegd,\nwilt u dan de gegevens nog even controleren?\nDit kunt U doen door naar http://www.adressen.hafabra.nl toe te gaan.\n\n";
--------------------------------------------------------------------------------------
--> print MAIL "Please put our link to youre pages: <a href ..........................>blah blah </a>\n\n";
--------------------------------------------------------------------------------------
print MAIL "Alvast bedankt,\nM.G. Mazer, Hans Gradussen en Mark Jansen\nBeheerders\n\n";
print MAIL "Mocht u nog vragen hebben, neem dan even contact op.\n";
close MAIL;


Gerard
The Netherlands