Welcome to WebmasterWorld Guest from 220.127.116.11 , register , login , search , subscribe , help , library , PubCon , announcements , recent posts , open posts Subscribe to WebmasterWorld
Question For Script Gurus One form but multiple email addresses austtr msg:595114 1:51 am on May 15, 2001 (gmt 0) Being unskilled in script development I'm seeking some feedback on how best to achieve the following:
An accommodation site promotes 100 individual properties but uses one common bookings/enquiry form. The problem... how to provide the correct email recipient address from the 100 possibles when the form is submitted.
This is probably a fairly common scenario... anyone know of any off-the-shelf scripts out there that will handle this? Any recommendations on where to look?
Air msg:595115 3:26 am on May 15, 2001 (gmt 0)
You can probably customize a copy of Matt's formmail script to do what you want. It depends too on what triggers the form, is it a simple link or is it tied to the property?
If it is tied to the property then the link could trigger a slighlty modified version of formmail and insert the appropriate e-mail addy in a hidden input field.
check out [
...] and [ cgi-resources.com ...] for ready made scripts that may help. perlarchive.com Brett_Tabke msg:595116 5:21 am on May 15, 2001 (gmt 0)
If I understand the problem Austtr, you could code each email address with the originating website:
<a href="myform-mail.cgi?foo.com">Contact us</a>
Then the receiving script would pull out the foo.com as the originating site. It would require specific coding of the source mail of course - maybe that isn't what you want.