CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 form data sent to variable email addresses

Print topic Send  topic

Author Message
eladkroy

Posts: 4
Posted: 08/27/2007, 10:21 AM

when data is entered on my form, I want that data to be emailed to one of two addresses according to the zip code. For example, if the form has the zip code 76687, I want it emailed tofred@abc.com. If the form is submitted with zip code 76600, I want it emailed tosusan@abc.com. How can I do this?

I have created a DB (MSaccess) with all of the appropriate zip codes (field1) and corresponding email addresses (field2). can I use this to filter the data.....if zip=field1, insert field2? I am very much a beginner at this.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 08/27/2007, 8:30 PM

eladkroy
You appear to be heading in the right direction. all you need to do is to have a query pull the email address based on the zip code and plug it in your email statement. i.e. $email = CCDLookUp("emailaddress","ziptable","zip=".$form->zipcode->GetValue(),dbase)

View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.