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 9015 Nov 12, 2001, 1:23 PM
Post Re: [Hank] Allow users to e-mail?
ktt 8825 Nov 13, 2001, 12:48 PM
Thread Re: [Hank] Allow users to e-mail?
604 8853 Nov 13, 2001, 1:32 PM
Post Re: [TheStone] Allow users to e-mail?
Suomi 8821 Nov 14, 2001, 6:40 AM
Post Re: [TheStone] Allow users to e-mail?
Suomi 8808 Nov 14, 2001, 7:58 AM
Thread Re: [TheStone] Allow users to e-mail?
Suomi 8873 Nov 14, 2001, 10:19 AM
Post Re: [Hank] Allow users to e-mail?
Suomi 8755 Nov 15, 2001, 8:59 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8606 Sep 6, 2002, 3:58 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 8607 Sep 6, 2002, 4:08 PM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8605 Sep 6, 2002, 4:36 PM
Thread Re: [Reena0330] Allow users to e-mail?
604 8593 Sep 6, 2002, 4:55 PM
Post Re: [TheStone] Allow users to e-mail?
Reena0330 8585 Sep 7, 2002, 11:57 AM
Thread Re: [TheStone] Allow users to e-mail?
Reena0330 8551 Sep 12, 2002, 11:13 AM
Thread Re: [Reena0330] Allow users to e-mail?
Reena0330 8551 Sep 12, 2002, 5:59 PM
Post Re: [Reena0330] Allow users to e-mail?
Reena0330 8535 Sep 13, 2002, 4:25 PM