Gossamer Forum
Home : Products : DBMan : Installation :

Add email field, but not part of db file

Quote Reply
Add email field, but not part of db file
I need to add an email address field and subject field that a user can fill in, but the data not get written to the database file. I then need the database record that the user filled in to be emailed, and the users email address and subject data appear in the FROM part of the recieved email. The reason I need it separate is because I need the database info to be just certain fields (no user name or email addresses) and I need to still know who submitted the record, and allow them to put in a subject line.
Please help!
John
Quote Reply
Re: Add email field, but not part of db file In reply to
You can have input fields that have no matching fields in the db. Only those that do have matching fields will be saved in the records.

In db.cgi, where you want to have the email sent, use $in{'email'} and $in{'subject'} in the header of the email message -- or whatever name you give to the fields. (In this case one would be name="email" and name="subject".)



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