Pass Data to ASP Form Emailed to Specific Person (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


nettop -> Pass Data to ASP Form Emailed to Specific Person (6/21/2008 13:58:40)

A person visits a Listings Page at http://www.foothillbiz4sale.com/listings.asp and selects a listing they want more information on. When they select the listing, for example, they are taken to a page with some details, such as http://www.foothillbiz4sale.com/12_select.asp?ID=1080 . From here, I'd like for them to contact the specific agent (currently a general email link at the bottom of the page) that has this listing via email or a form and I'd like the form to include this listing number so the agent knows what the person is asking about. So, we need to create a form that has the agent ID that the form is submitted to and that it would include the listing information about this specific business.

One problem I have is that I can't get an ASP form to email ...it just sends info to the database. Any suggestions? Thanks, Tim




pd_it_guy -> RE: Pass Data to ASP Form Emailed to Specific Person (6/22/2008 11:28:21)

My compliments on your site. While I would first let others weigh in with their ideas as there may be a better way to do this, this is what I would do.

Instead of the mail link you now have, make it a submit to a new page, and pass the variables of listing number and agent name (along with anything else you want to send forward) as hidden variables. This opens another page and form that prefills what we learned from the first page, and asks some things we dont know yet; such as, phone numbers, best way/ time to contact, email (although we would have that the old way) and anything else the agent could use to evaluate the lead. This form in turn is sent on to another page where a CDOSYS mail routine runs, that mails information from the form to the agent that was identified from the listing. The user gets a message that their inquiry was sent, and they can go back to look at more listings. You could skip the intervening page but if you go directly to the mail routine it might not look as clean and pass up an opportunity to get more information. In addition to responding to the ad to the agent you could have ad replies go into a separate database/table to be revisited later.

There are lots of CDOSYS examples on this site and I can get more if you need them.







Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.046875