Hi,
I would like to to set up a form for visitors to reply to a classified.
In the long display of a record there is at present an e-mail adres of the person who posted the classified. I would like to substitute a "Reply" button there that opens a form containing the relevant data of that record to be posted to the owner of the classified by e-mail.
The reason for this is that I would like those who have posted a free classified to know that the reaction is coming from my site. This by adding something like; "A Classic Boatworld visitor has replyed to your ad". Also,the person replying to the classified would not need to retype the information.
In the form I would add a form field for the visitor to enter their e-mail adres so that the poster of the classified can get in touch with them.
OK I know you guys apreciate it when we get our own hands dirty in cgi (how else will we learn?)so this is as far as I've gotten;
%rec = &get_record($in{$db_key});
open (MAIL, "$mailprog") | | &cgierr("Can't start mail program");
print MAIL "To: $in{'email'}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: A Classic Boatworld visitor has replied to
the following boat listing you have posted.your\n\n";
print MAIL "Listing #:$rec{'Listing'}\n\n";
print MAIL "Builder/Designer:$rec{'Builder'}\n\n";
print MAIL "Model:$rec{'Model'}\n\n";
print MAIL "Your Company's Boat ID number $rec{'BrokersID'}\n\n";
print MAIL "Please contact $html_title support at: $admin_email\n";
print MAIL "if you have any questions.\n\n";
close (MAIL);
I think I can build the form in my html editor substituting the field values with $rec{'example'}but need help & suggestions how to connect up with dbman in order to accomplish the above.
Regards,HJ
------------------
Henk Jan Buchel
Classic Boatworld
http://classicboatworld.net
I would like to to set up a form for visitors to reply to a classified.
In the long display of a record there is at present an e-mail adres of the person who posted the classified. I would like to substitute a "Reply" button there that opens a form containing the relevant data of that record to be posted to the owner of the classified by e-mail.
The reason for this is that I would like those who have posted a free classified to know that the reaction is coming from my site. This by adding something like; "A Classic Boatworld visitor has replyed to your ad". Also,the person replying to the classified would not need to retype the information.
In the form I would add a form field for the visitor to enter their e-mail adres so that the poster of the classified can get in touch with them.
OK I know you guys apreciate it when we get our own hands dirty in cgi (how else will we learn?)so this is as far as I've gotten;
%rec = &get_record($in{$db_key});
open (MAIL, "$mailprog") | | &cgierr("Can't start mail program");
print MAIL "To: $in{'email'}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: A Classic Boatworld visitor has replied to
the following boat listing you have posted.your\n\n";
print MAIL "Listing #:$rec{'Listing'}\n\n";
print MAIL "Builder/Designer:$rec{'Builder'}\n\n";
print MAIL "Model:$rec{'Model'}\n\n";
print MAIL "Your Company's Boat ID number $rec{'BrokersID'}\n\n";
print MAIL "Please contact $html_title support at: $admin_email\n";
print MAIL "if you have any questions.\n\n";
close (MAIL);
I think I can build the form in my html editor substituting the field values with $rec{'example'}but need help & suggestions how to connect up with dbman in order to accomplish the above.
Regards,HJ
------------------
Henk Jan Buchel
Classic Boatworld
http://classicboatworld.net