|
-
Mar 5th, 2001, 08:23 AM
#1
Thread Starter
Hyperactive Member
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">
-
Mar 5th, 2001, 09:33 AM
#2
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.
-
Mar 5th, 2001, 01:54 PM
#3
Thread Starter
Hyperactive Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|