|
I use 2 methods when using ASP to generate a contact form, but both using a similar principle, either as 2 pages, or on a single page.
Using 2 pages is often easier to understand in the first instance. The first page is used for the form only, the data from the form then sent to the second page where the data is then read ad processed. This is where the real work happens. After reading the data I then construct an email using this and use an email method such as CDONTS to sent the email. For a more efficient method I combine the 2 pages into one using a flag on a form to determine whether I should display the form or process the form data.
Is this the type of thing you are looking for?
|