|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
form to email and database
how can i configure webform to insert to database and
send to email at the same time i know how to do it individually but not together thanks oh this just html form <form name="form" method="post" action=""> |
|
#2
|
||||
|
||||
|
Make a form handler "myasp.asp" page, and put it in the action="" tag. Then put the email and insert code in the form handler, and it will all be executed when the form is submitted.
|
|
#3
|
|||
|
|||
|
i am interested in this because i wanted to insert to a database and write to a cookie at same time, but it was only inserting and leaving the cookie blank .. can you show me what you mean by a form handler? much appreciated
Barry |
|
#4
|
||||
|
||||
|
A form handler is just an asp page. You put all the code in it that you want to execute when the form is submitted. Save it as "myhandler.asp" or something like that. Then in the action="" attribute of the form, you put in "myhandler.asp" so that it says
Code:
action="myhandler.asp"
__________________
--Dave-- U2kgSG9jIExlZ2VyZSBTY2lzLCBOaW1pdW0gRXJ1ZGl0aW9uaXMgSGFiZXM= |
|
#5
|
|||
|
|||
|
thank you very much, very helpful
![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > form to email and database |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|