Here is what I would like to do (please view image attached):
I have a form with one field in it. Once I put data in it and click the "Show Alarm/Access Codes" button, it should show all needed information on the same page below the form. Is this possible? If so, can anyone post some sample code or link me to a page that would have some code? Thanks in advance.
-vbuser1976
VB6 Enterprise SP6
SQL 7.0 SP2
VBScript, HTML, Javascript, C++, a little UNIX
Just have the same ASP page handle the form. If data is posted, fill out the info, if not, leave it blank.
Josh
Get these: MozillaOperaOpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
In javascript the button should have an "onClick=''" event...
Josh
Get these: MozillaOperaOpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
you dont have to bother about OnSubmit or OnClick.
the form tag is like :
<Form method=POST action="process.asp">
' In here you should have your
</Form>
what you need in your process.asp page is to check if the submit button was clicked assuming your button is named submit:
IF Len(Request.Form("Submit")) then
'open the connection and select the required record
'assign the results to the variables you dimmed
ELSE
'Just display the form
' and the empty variables. (nothing displayd)
END IF
so as you see,
you will open the connection and select the record only if it is needed.