Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Re: [Reena0330] Allow users to e-mail?

Quote Reply
Re: [Reena0330] Allow users to e-mail? In reply to
You should create a template called 'send_mail_form.html' which contains:

<form name=myform action="db.cgi" method="post">
To:.....
...
<input type="hidden" name="db" value="<%db%>">
<input type="hidden" name="do" value="send_mail">
</form>

- Add the 'send_mail_form' subroutine in Home.pm

$COMPILE{send_mail_form} = <<'END_OF_SUB';
sub send_mail_form {
#-----------------------------------------------------------------------------
#
my ($self, $msg) = @_;
return ('send_mail_form.html', { msg => $msg});
}
END_OF_SUB

- add a link into your template:
<a href="db.cgi?do=send_mail_form">Send Email</a>

Hope that helps.

TheStone.

B.
Subject Author Views Date
Thread Allow users to e-mail? Suomi 5955 Nov 12, 2001, 1:23 PM
Post Re: [Hank] Allow users to e-mail?
ktt 5810 Nov 13, 2001, 12:48 PM
Thread Re: [Hank] Allow users to e-mail?
604 5847 Nov 13, 2001, 1:32 PM
Post Re: [TheStone] Allow users to e-mail?
Suomi 5822 Nov 14, 2001, 6:40 AM
Post Re: [TheStone] Allow users to e-mail?
Suomi 5798 Nov 14, 2001, 7:58 AM
Thread Re: [TheStone] Allow users to e-mail?
Suomi 5847 Nov 14, 2001, 10:19 AM
Post Re: [Hank] Allow users to e-mail?
Suomi 5749 Nov 15, 2001, 8:59 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 5608 Sep 6, 2002, 3:58 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 5612 Sep 6, 2002, 4:08 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 5603 Sep 6, 2002, 4:36 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 5592 Sep 6, 2002, 4:55 PM
Post Re: [TheStone] Allow users to e-mail?
Reena0330 5581 Sep 7, 2002, 11:57 AM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 5546 Sep 12, 2002, 11:13 AM
Thread Re: [Reena0330] Allow users to e-mail?
Reena0330 5551 Sep 12, 2002, 5:59 PM
Post Re: [Reena0330] Allow users to e-mail?
Reena0330 5527 Sep 13, 2002, 4:25 PM