-
Hello,
I have this code which opens "checklogin.asp" after I clicked the button.
My questions is whether I can call a vbscript block of code INSTEAD of posting to another page. IE. When the button is clicked I want to run a piece of VBSCRIPT/ASP code called "update".
How do I define this block of code in my page?? Is it the same as with javascript??
<form name="frmcheck" id="frmcheck" method="POST" action="checklogin.asp" align="center">
'some other code
<input type="button" value="Update" name="B1">
-
Set your action to the same page and have your code wrapped in an if statement that checks the value of your submit/update buttons. Like in your example
If request.form("B1") = "Update" then
'etc..etc.
-