Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

Question For Script Gurus

One form but multiple email addresses



1:51 am on May 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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?



3:26 am on May 15, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

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 [cgi-resources.com...] and [perlarchive.com...] for ready made scripts that may help.


5:21 am on May 15, 2001 (gmt 0)

WebmasterWorld Administrator brett_tabke is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

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.


Featured Threads

Hot Threads This Week

Hot Threads This Month