Gossamer Forum
Home : Products : DBMan : Customization :

Re: Email Notification with a BIG Twist

Quote Reply
Re: Email Notification with a BIG Twist In reply to
First off, I'm not sure why you have the

%rec = &get_record($in{$db_key});

in sub modify_record. All of the values of the fields will be in the %in hash when the subroutine is called. In your mailer subroutine, just use $in{'Fieldname'}.

Second, there is no need to have a "Change" field in your database. You can add the checkbox to the form without adding the field. It, too, would be in the %in hash. So you would use

Code:
if (($in{'Change'}) && ($in{'Email'})) {

I'm not sure what you need to change in sub validate_record, or if you need to change anything at all.

When you run your script, do you get the modify success page, even though the email isn't sent?


------------------
JPD





Subject Author Views Date
Thread Email Notification with a BIG Twist Eliot 6033 Aug 3, 1999, 12:27 PM
Post Re: Email Notification with a BIG Twist
JPDeni 5909 Aug 3, 1999, 7:37 PM
Post Re: Email Notification with a BIG Twist
Eliot 5916 Aug 3, 1999, 7:43 PM
Post Re: Email Notification with a BIG Twist
JPDeni 5899 Aug 3, 1999, 8:14 PM
Post Re: Email Notification with a BIG Twist
Eliot 5911 Aug 3, 1999, 8:22 PM
Post Re: Email Notification with a BIG Twist
Eliot 5913 Aug 4, 1999, 5:25 AM
Post Re: Email Notification with a BIG Twist
Eliot 5900 Aug 4, 1999, 6:57 AM
Post Re: Email Notification with a BIG Twist
Eliot 5892 Aug 4, 1999, 7:52 AM
Post Re: Email Notification with a BIG Twist
JPDeni 5959 Aug 4, 1999, 9:07 AM
Post Re: Email Notification with a BIG Twist
compu_tel 5941 Aug 4, 1999, 10:02 AM
Thread Re: Email Notification with a BIG Twist
Eliot 5924 Aug 4, 1999, 10:50 AM
Thread Re: Email Notification
omegadm 5897 Jul 27, 2000, 8:00 AM
Thread Re: Email Notification
LoisC 5935 Jul 27, 2000, 11:12 AM
Post Re: Email Notification
omegadm 5948 Jul 27, 2000, 3:12 PM
Thread Re: [Eliot] Email Notification with a BIG Twist
mabel 5685 Dec 11, 2002, 12:27 AM
Post Re: [mabel] Email Notification with a BIG Twist
LoisC 5666 Dec 11, 2002, 9:14 PM
Post Re: Email Notification with a BIG Twist
Eliot 5909 Aug 4, 1999, 12:32 PM