Can I assign 2 or more actions to a form. I am trying to use ASP to store the input data from the form to an MS Access data base as well as email the contants to an email address using CDONTS. Can someone please help me. Thanks
sure you can - in fact it has nothing to do with the form as such.
After you do the rs.execute to insert the data, the next line starts the CDONTS routine.
If you are using recordset data, be sure not to close the connection until after you have sent the email or you can store the data you want in variables first if you prefer.
yep. But you may want to set it up so that the database is a true form and the email is nothing more than a plain button with some fancy programming behind it.
In fact, with the email one simply create a function and onClick run the email function without even reloading the page if you like as there is no form data needing to be submitted by the sound of it.
All the code for the CDONTS object I have found so far seems to be for VBscript ASP. Where can I find code for Javescript ASP? Can someone please help me? I have look all over the place for the Javescript version of the code. Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.