homepage Welcome to WebmasterWorld Guest from 54.237.213.31
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Question For Script Gurus
One form but multiple email addresses
austtr

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 680 posted 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?

Thanks

 

Air

WebmasterWorld Senior Member 10+ Year Member



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

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 680 posted 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved