Hello,
The following are my codes, but doesn't work.
Many thanks,
JW
***************************
<HTML>
<HEAD><% @LANGUAGE = VBScript %>
Response.ContentType = "application/vnd.ms-excel"
<TITLE>Post</TITLE>
</HEAD>
<BODY>
<%
dim whichAction
If Request.ServerVariables("QUERY_STRING" <> "" Then
whichAction = Request.QueryString("action"
else
whichAction = Request.Form("Action"
End if
response.write(whichAction)
If (whichaction = "Add New" Then
%>
<form method="POST" name="Add" action="post.asp">
<p>
First Name <input type="text" name="FirstName" size="20" tabindex="1"><br>
Last Name <input type="text" name="LastName" size="20" tabindex="2"><br>
Date of Birth <input type="text" name="DOB" size="13" value="MM/DD/YYYY" tabindex="3"><br>
Education <input type="text" name="Education" size="2" tabindex="4"><br>
Diagnosis <select size="1" name="Diagnosis">
<option>Age-Associated Memory Impairment</option>
<option>Age-Related Cognitive Decline</option>
<option>Alcohol Abuse/Dependence</option>
<option>Alcohol Dementia</option>
<option>Alzheimer's Disease</option>
<option>Alzheimer's Disease (Early Onset)</option>
<option>Alzheimer's Disease (Early Onset) w/bd</option>
<option>Alzheimer's Disease w/beh dist.</option>
<option>Alzheimer's Disease w/SH</option>
<option>Alzheimer's Disease w/Stroke</option>
<option>Alzheimer's Disease w/WM disease</option>
<option>Amnestic Disorder NOS</option>
<option>Amyloid Angiopathy</option>
<option>Anoxia/Hypoxia</option>
<option>Apathy</option>
<option>Aphasia</option>
<option>Ataxia</option>
<option>Attention Deficit Disorder</option>
<option>Autism</option>
<option>AVM/Aneurysm</option>
<option>Basal Ganglia Calcifications</option>
<option>Behavioral Disturbance</option>
<option>Bipolar Disorder</option>
<option>CADASIL</option>
<option>Cerebellar Disorder</option>
<option>Cognitive Disorder NOS</option>
<option>Corticobasal Degeneration</option>
<option>Creutzfeld-Jacob Disease</option>
<option>Cysticercosis</option>
<option>Cysts</option>
<option>DBS Depression</option>
<option>DBS OCD</option>
<option>Delirium</option>
<option>Dementia NOS</option>
<option>Dementia with Lewy Bodies</option>
<option>Depression</option>
<option>Depression-Vascular</option>
<option>Developmental Disorders</option>
<option>Down's Syndrome</option>
<option>Dystonia</option>
<option>Encephalitis</option>
<option>Epilepsy</option>
<option>Familial Alzheimer's Disease</option>
<option>Forced Normalization</option>
<option>Frontal Lesion</option>
<option>Frontal-Temporal Dementia</option>
<option>Guillain-Barre Syndrome</option>
<option>Hemiparesis</option>
<option>Hemiplegia</option>
<option>Herniation</option>
<option>HIV</option>
<option>Huntington's Disease</option>
<option>Hydrocephalus</option>
<option>Infectious Diseases</option>
<option>Lobotomy</option>
<option>Lupus</option>
<option>Lyme Disease</option>
<option>Medication</option>
<option>Meningioma</option>
<option>Mesial Temporal Sclerosis</option>
<option>Metabolic Disorder</option>
<option>Migraine</option>
<option>Mild Cognitive Impairment-Amnestic</option>
<option>Mild Cognitive Impairment-Other</option>
<option>Mild Cognitive Impairment-Vascular</option>
<option>Mixed Dementia</option>
<option>Movement Disorders (non-PD)</option>
<option>MS/Demyelination</option>
<option>Multiple System Atrophy</option>
<option>Narcolepsy</option>
<option>Neuropathy</option>
<option>Neurosurgical (non-lobotomy)</option>
<option>No Cognitive Impairment</option>
<option>Normal Pressure Hydrocephalus</option>
<option>Obesity</option>
<option>OCD Deep Brain Stimulation</option>
<option>OCD/Gamma Knife</option>
<option>Parkinson's Disease</option>
<option>Parkinson's Disease-Vascular</option>
<option>Parkinson's Plus Syndrome</option>
<option>Personality Disorder</option>
<option>Pituitary Disorder</option>
<option>Pregnancy</option>
<option>Primary Progressive Aphasia</option>
<option>Progressive Supranuclear Palsy</option>
<option>Psychiatric Disorders</option>
<option>Psychogenic</option>
<option>Radiation Necrosis</option>
<option>REM Sleep Behavior Disorder</option>
<option>Sarcoidosis</option>
<option>Schizophrenia</option>
<option>Spinal Cord Disorder</option>
<option>Stroke: Hemorrhagic</option>
<option>Stroke: Large Vessel</option>
<option>Stroke: Posterior Circulation</option>
<option>Stroke: Small Vessel Subcortical</option>
<option>Subcortical Vascular Disease</option>
<option>Subdural Hematoma</option>
<option>Substance Abuse</option>
<option>Tardrive Dyskinesia</option>
<option>Tourette's Syndrome</option>
<option>Toxin</option>
<option>Transient Ischemic Attack</option>
<option>Traumatic Brain Injury</option>
<option>Trigeminal Neuralgia</option>
<option>Tumors</option>
<option>Tumors vs. Stroke</option>
<option>Vascular Dementia: Large Vessel</option>
<option>Vascular Dementia: Small Vessel</option>
<option>Vasculitis</option>
<option>Wernick-Korsakoff Syndrome</option>
</select><br>
Diagnostic Code <input type="text" name="DiagnosticCode" size="6" tabindex="5"><br>
Subcortical Hyperintenisites (SH) <select size="1" name="SH">
<option>Mild</option>
<option>Moderate</option>
<option>Severe</option>
</select></p>
<p><input type="submit" name="Action" value="Add" tabindex="7"><input type="reset" value="Reset" name="B2"></p>
</form>
<%
ElseIf (whichaction = "Add" Then
dim myconnection, connectString, strQuery, objRS
dim strFirstName, strLastName, strDOB, strEducation, strDiagnosis, strDiagnosticCode, strSH
connectString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set myConnection = Server.CreateObject("ADODB.Connection"
myConnection.Open connectString
objRS = Server.CreateObject("ADODB.Recordset"
strFirstName = request.form("FirstName"
strLastName = request.form("LastName"
strDOB = Request.form("DOB"
strEducation = Request.form("Education"
strDiagnosis = Request.form("Diagnosis"
strDiagnosticCode = Request.form("DiagnosticCode"
strSH = Request.form("SH"
strQuery = "INSERT INTO Patients(FirstName, LastName, DOB, Education, Diagnosis, DiagnosticCode, SH) VALUES "
strQuery = strQuery & "('" & strFirstName & "','" & strLastName & "','" & strDOB & "','" & strEducation & "','"
strQuery = strQuery & strDiagnosis & "','" & strDiagnosticCode & "','" & strSH & "')"
myConnection.Execute strQuery
Set myConnection = Nothing
Set objRS = Nothing
ElseIf (whichaction = "Edit" Then
dim Connection, cString, sQuery, oRS
cString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set Connection = Server.CreateObject("ADODB.Connection"
Connection.Open cString
Set oRS = Server.CreateObject("ADODB.Recordset"
PatID = Request.QueryString("ID"
sQuery = "select * from Patients where PatientID = " & PatID
Set oRS = Connection.Execute(sQuery)
%>
<form method="POST" name="Add" action="post.asp">
<p>
First Name <input type="text" name="FirstName" size="20" tabindex="1" value="<%=oRS("FirstName"%>"><br>
Last Name <input type="text" name="LastName" size="20" tabindex="2" value="<%=oRS("LastName"%>"><br>
Date of Birth <input type="text" name="DOB" size="13" tabindex="3" value="<%=oRS("DOB"%>"><br>
Education <input type="text" name="Education" size="2" tabindex="4" value="<%=oRS("Education"%>"><br>
Diagnosis <select size="1" name="Diagnosis" selected="<%=oRS("Diagnosis"%>">
<option>Age-Associated Memory Impairment</option>
<option>Age-Related Cognitive Decline</option>
<option>Alcohol Abuse/Dependence</option>
<option>Alcohol Dementia</option>
<option>Alzheimer's Disease</option>
<option>Alzheimer's Disease (Early Onset)</option>
<option>Alzheimer's Disease (Early Onset) w/bd</option>
<option>Alzheimer's Disease w/beh dist.</option>
<option>Alzheimer's Disease w/SH</option>
<option>Alzheimer's Disease w/Stroke</option>
<option>Alzheimer's Disease w/WM disease</option>
<option>Amnestic Disorder NOS</option>
<option>Amyloid Angiopathy</option>
<option>Anoxia/Hypoxia</option>
<option>Apathy</option>
<option>Aphasia</option>
<option>Ataxia</option>
<option>Attention Deficit Disorder</option>
<option>Autism</option>
<option>AVM/Aneurysm</option>
<option>Basal Ganglia Calcifications</option>
<option>Behavioral Disturbance</option>
<option>Bipolar Disorder</option>
<option>CADASIL</option>
<option>Cerebellar Disorder</option>
<option>Cognitive Disorder NOS</option>
<option>Corticobasal Degeneration</option>
<option>Creutzfeld-Jacob Disease</option>
<option>Cysticercosis</option>
<option>Cysts</option>
<option>DBS Depression</option>
<option>DBS OCD</option>
<option>Delirium</option>
<option>Dementia NOS</option>
<option>Dementia with Lewy Bodies</option>
<option>Depression</option>
<option>Depression-Vascular</option>
<option>Developmental Disorders</option>
<option>Down's Syndrome</option>
<option>Dystonia</option>
<option>Encephalitis</option>
<option>Epilepsy</option>
<option>Familial Alzheimer's Disease</option>
<option>Forced Normalization</option>
<option>Frontal Lesion</option>
<option>Frontal-Temporal Dementia</option>
<option>Guillain-Barre Syndrome</option>
<option>Hemiparesis</option>
<option>Hemiplegia</option>
<option>Herniation</option>
<option>HIV</option>
<option>Huntington's Disease</option>
<option>Hydrocephalus</option>
<option>Infectious Diseases</option>
<option>Lobotomy</option>
<option>Lupus</option>
<option>Lyme Disease</option>
<option>Medication</option>
<option>Meningioma</option>
<option>Mesial Temporal Sclerosis</option>
<option>Metabolic Disorder</option>
<option>Migraine</option>
<option>Mild Cognitive Impairment-Amnestic</option>
<option>Mild Cognitive Impairment-Other</option>
<option>Mild Cognitive Impairment-Vascular</option>
<option>Mixed Dementia</option>
<option>Movement Disorders (non-PD)</option>
<option>MS/Demyelination</option>
<option>Multiple System Atrophy</option>
<option>Narcolepsy</option>
<option>Neuropathy</option>
<option>Neurosurgical (non-lobotomy)</option>
<option>No Cognitive Impairment</option>
<option>Normal Pressure Hydrocephalus</option>
<option>Obesity</option>
<option>OCD Deep Brain Stimulation</option>
<option>OCD/Gamma Knife</option>
<option>Parkinson's Disease</option>
<option>Parkinson's Disease-Vascular</option>
<option>Parkinson's Plus Syndrome</option>
<option>Personality Disorder</option>
<option>Pituitary Disorder</option>
<option>Pregnancy</option>
<option>Primary Progressive Aphasia</option>
<option>Progressive Supranuclear Palsy</option>
<option>Psychiatric Disorders</option>
<option>Psychogenic</option>
<option>Radiation Necrosis</option>
<option>REM Sleep Behavior Disorder</option>
<option>Sarcoidosis</option>
<option>Schizophrenia</option>
<option>Spinal Cord Disorder</option>
<option>Stroke: Hemorrhagic</option>
<option>Stroke: Large Vessel</option>
<option>Stroke: Posterior Circulation</option>
<option>Stroke: Small Vessel Subcortical</option>
<option>Subcortical Vascular Disease</option>
<option>Subdural Hematoma</option>
<option>Substance Abuse</option>
<option>Tardrive Dyskinesia</option>
<option>Tourette's Syndrome</option>
<option>Toxin</option>
<option>Transient Ischemic Attack</option>
<option>Traumatic Brain Injury</option>
<option>Trigeminal Neuralgia</option>
<option>Tumors</option>
<option>Tumors vs. Stroke</option>
<option>Vascular Dementia: Large Vessel</option>
<option>Vascular Dementia: Small Vessel</option>
<option>Vasculitis</option>
<option>Wernick-Korsakoff Syndrome</option>
</select><br>
Diagnostic Code <input type="text" name="DiagnosticCode" size="6" tabindex="5" value="<%=oRS("DiagnosticCode"%>"><br>
Subcortical Hyperintenisites (SH) <select size="1" name="SH">
<option>Mild</option>
<option>Moderate</option>
<option>Severe</option>
</select></p>
<input type="Hidden" name="PatientID" value="<%=oRS("PatientID"%>">
<p><input type="submit" name="Action" value="Update" tabindex="7"><input type="reset" value="Reset" name="B2"></p>
</form>
<%
ElseIf (whichaction = "Update" Then
connectString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set myConnection = Server.CreateObject("ADODB.Connection"
myConnection.Open connectString
objRS = Server.CreateObject("ADODB.Recordset"
strFirstName = request.form("FirstName"
strLastName = request.form("LastName"
strDOB = Request.form("DOB"
strEducation = Request.form("Education"
strDiagnosis = Request.form("Diagnosis"
strDiagnosticCode = Request.form("DiagnosticCode"
strSH = Request.form("SH"
PatID = Request.Form("PatientID"
strQuery = "INSERT INTO Patients(FirstName, LastName, DOB, Education, Diagnosis, DiagnosticCode, SH) VALUES "
strQuery = strQuery & "('" & strFirstName & "','" & strLastName & "','" & strDOB & "','" & strEducation & "','"
strQuery = strQuery & strDiagnosis & "','" & strDiagnosticCode & "','" & strSH & "') WHERE PatientID = " & PatID & ";"
Response.write(strQuery)
myConnection.Execute strQuery
'objRS("FirstName" = strFirstName
'objRS("LastName" = strLastName
'objRS("DOB" = strDOB
'objRS("Education" = strEducation
'objRS("Diagnosis" = strDiagnosis
'objRS("DiagnosticCode" = strDiagnosticCode
'objRS("SH" = strSH
'objRS.Update
End If
%>
</BODY>
</HTML>
The following are my codes, but doesn't work.
Many thanks,
JW
***************************
<HTML>
<HEAD><% @LANGUAGE = VBScript %>
Response.ContentType = "application/vnd.ms-excel"
<TITLE>Post</TITLE>
</HEAD>
<BODY>
<%
dim whichAction
If Request.ServerVariables("QUERY_STRING" <> "" Then
whichAction = Request.QueryString("action"
else
whichAction = Request.Form("Action"
End if
response.write(whichAction)
If (whichaction = "Add New" Then
%>
<form method="POST" name="Add" action="post.asp">
<p>
First Name <input type="text" name="FirstName" size="20" tabindex="1"><br>
Last Name <input type="text" name="LastName" size="20" tabindex="2"><br>
Date of Birth <input type="text" name="DOB" size="13" value="MM/DD/YYYY" tabindex="3"><br>
Education <input type="text" name="Education" size="2" tabindex="4"><br>
Diagnosis <select size="1" name="Diagnosis">
<option>Age-Associated Memory Impairment</option>
<option>Age-Related Cognitive Decline</option>
<option>Alcohol Abuse/Dependence</option>
<option>Alcohol Dementia</option>
<option>Alzheimer's Disease</option>
<option>Alzheimer's Disease (Early Onset)</option>
<option>Alzheimer's Disease (Early Onset) w/bd</option>
<option>Alzheimer's Disease w/beh dist.</option>
<option>Alzheimer's Disease w/SH</option>
<option>Alzheimer's Disease w/Stroke</option>
<option>Alzheimer's Disease w/WM disease</option>
<option>Amnestic Disorder NOS</option>
<option>Amyloid Angiopathy</option>
<option>Anoxia/Hypoxia</option>
<option>Apathy</option>
<option>Aphasia</option>
<option>Ataxia</option>
<option>Attention Deficit Disorder</option>
<option>Autism</option>
<option>AVM/Aneurysm</option>
<option>Basal Ganglia Calcifications</option>
<option>Behavioral Disturbance</option>
<option>Bipolar Disorder</option>
<option>CADASIL</option>
<option>Cerebellar Disorder</option>
<option>Cognitive Disorder NOS</option>
<option>Corticobasal Degeneration</option>
<option>Creutzfeld-Jacob Disease</option>
<option>Cysticercosis</option>
<option>Cysts</option>
<option>DBS Depression</option>
<option>DBS OCD</option>
<option>Delirium</option>
<option>Dementia NOS</option>
<option>Dementia with Lewy Bodies</option>
<option>Depression</option>
<option>Depression-Vascular</option>
<option>Developmental Disorders</option>
<option>Down's Syndrome</option>
<option>Dystonia</option>
<option>Encephalitis</option>
<option>Epilepsy</option>
<option>Familial Alzheimer's Disease</option>
<option>Forced Normalization</option>
<option>Frontal Lesion</option>
<option>Frontal-Temporal Dementia</option>
<option>Guillain-Barre Syndrome</option>
<option>Hemiparesis</option>
<option>Hemiplegia</option>
<option>Herniation</option>
<option>HIV</option>
<option>Huntington's Disease</option>
<option>Hydrocephalus</option>
<option>Infectious Diseases</option>
<option>Lobotomy</option>
<option>Lupus</option>
<option>Lyme Disease</option>
<option>Medication</option>
<option>Meningioma</option>
<option>Mesial Temporal Sclerosis</option>
<option>Metabolic Disorder</option>
<option>Migraine</option>
<option>Mild Cognitive Impairment-Amnestic</option>
<option>Mild Cognitive Impairment-Other</option>
<option>Mild Cognitive Impairment-Vascular</option>
<option>Mixed Dementia</option>
<option>Movement Disorders (non-PD)</option>
<option>MS/Demyelination</option>
<option>Multiple System Atrophy</option>
<option>Narcolepsy</option>
<option>Neuropathy</option>
<option>Neurosurgical (non-lobotomy)</option>
<option>No Cognitive Impairment</option>
<option>Normal Pressure Hydrocephalus</option>
<option>Obesity</option>
<option>OCD Deep Brain Stimulation</option>
<option>OCD/Gamma Knife</option>
<option>Parkinson's Disease</option>
<option>Parkinson's Disease-Vascular</option>
<option>Parkinson's Plus Syndrome</option>
<option>Personality Disorder</option>
<option>Pituitary Disorder</option>
<option>Pregnancy</option>
<option>Primary Progressive Aphasia</option>
<option>Progressive Supranuclear Palsy</option>
<option>Psychiatric Disorders</option>
<option>Psychogenic</option>
<option>Radiation Necrosis</option>
<option>REM Sleep Behavior Disorder</option>
<option>Sarcoidosis</option>
<option>Schizophrenia</option>
<option>Spinal Cord Disorder</option>
<option>Stroke: Hemorrhagic</option>
<option>Stroke: Large Vessel</option>
<option>Stroke: Posterior Circulation</option>
<option>Stroke: Small Vessel Subcortical</option>
<option>Subcortical Vascular Disease</option>
<option>Subdural Hematoma</option>
<option>Substance Abuse</option>
<option>Tardrive Dyskinesia</option>
<option>Tourette's Syndrome</option>
<option>Toxin</option>
<option>Transient Ischemic Attack</option>
<option>Traumatic Brain Injury</option>
<option>Trigeminal Neuralgia</option>
<option>Tumors</option>
<option>Tumors vs. Stroke</option>
<option>Vascular Dementia: Large Vessel</option>
<option>Vascular Dementia: Small Vessel</option>
<option>Vasculitis</option>
<option>Wernick-Korsakoff Syndrome</option>
</select><br>
Diagnostic Code <input type="text" name="DiagnosticCode" size="6" tabindex="5"><br>
Subcortical Hyperintenisites (SH) <select size="1" name="SH">
<option>Mild</option>
<option>Moderate</option>
<option>Severe</option>
</select></p>
<p><input type="submit" name="Action" value="Add" tabindex="7"><input type="reset" value="Reset" name="B2"></p>
</form>
<%
ElseIf (whichaction = "Add" Then
dim myconnection, connectString, strQuery, objRS
dim strFirstName, strLastName, strDOB, strEducation, strDiagnosis, strDiagnosticCode, strSH
connectString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set myConnection = Server.CreateObject("ADODB.Connection"
myConnection.Open connectString
objRS = Server.CreateObject("ADODB.Recordset"
strFirstName = request.form("FirstName"
strLastName = request.form("LastName"
strDOB = Request.form("DOB"
strEducation = Request.form("Education"
strDiagnosis = Request.form("Diagnosis"
strDiagnosticCode = Request.form("DiagnosticCode"
strSH = Request.form("SH"
strQuery = "INSERT INTO Patients(FirstName, LastName, DOB, Education, Diagnosis, DiagnosticCode, SH) VALUES "
strQuery = strQuery & "('" & strFirstName & "','" & strLastName & "','" & strDOB & "','" & strEducation & "','"
strQuery = strQuery & strDiagnosis & "','" & strDiagnosticCode & "','" & strSH & "')"
myConnection.Execute strQuery
Set myConnection = Nothing
Set objRS = Nothing
ElseIf (whichaction = "Edit" Then
dim Connection, cString, sQuery, oRS
cString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set Connection = Server.CreateObject("ADODB.Connection"
Connection.Open cString
Set oRS = Server.CreateObject("ADODB.Recordset"
PatID = Request.QueryString("ID"
sQuery = "select * from Patients where PatientID = " & PatID
Set oRS = Connection.Execute(sQuery)
%>
<form method="POST" name="Add" action="post.asp">
<p>
First Name <input type="text" name="FirstName" size="20" tabindex="1" value="<%=oRS("FirstName"%>"><br>
Last Name <input type="text" name="LastName" size="20" tabindex="2" value="<%=oRS("LastName"%>"><br>
Date of Birth <input type="text" name="DOB" size="13" tabindex="3" value="<%=oRS("DOB"%>"><br>
Education <input type="text" name="Education" size="2" tabindex="4" value="<%=oRS("Education"%>"><br>
Diagnosis <select size="1" name="Diagnosis" selected="<%=oRS("Diagnosis"%>">
<option>Age-Associated Memory Impairment</option>
<option>Age-Related Cognitive Decline</option>
<option>Alcohol Abuse/Dependence</option>
<option>Alcohol Dementia</option>
<option>Alzheimer's Disease</option>
<option>Alzheimer's Disease (Early Onset)</option>
<option>Alzheimer's Disease (Early Onset) w/bd</option>
<option>Alzheimer's Disease w/beh dist.</option>
<option>Alzheimer's Disease w/SH</option>
<option>Alzheimer's Disease w/Stroke</option>
<option>Alzheimer's Disease w/WM disease</option>
<option>Amnestic Disorder NOS</option>
<option>Amyloid Angiopathy</option>
<option>Anoxia/Hypoxia</option>
<option>Apathy</option>
<option>Aphasia</option>
<option>Ataxia</option>
<option>Attention Deficit Disorder</option>
<option>Autism</option>
<option>AVM/Aneurysm</option>
<option>Basal Ganglia Calcifications</option>
<option>Behavioral Disturbance</option>
<option>Bipolar Disorder</option>
<option>CADASIL</option>
<option>Cerebellar Disorder</option>
<option>Cognitive Disorder NOS</option>
<option>Corticobasal Degeneration</option>
<option>Creutzfeld-Jacob Disease</option>
<option>Cysticercosis</option>
<option>Cysts</option>
<option>DBS Depression</option>
<option>DBS OCD</option>
<option>Delirium</option>
<option>Dementia NOS</option>
<option>Dementia with Lewy Bodies</option>
<option>Depression</option>
<option>Depression-Vascular</option>
<option>Developmental Disorders</option>
<option>Down's Syndrome</option>
<option>Dystonia</option>
<option>Encephalitis</option>
<option>Epilepsy</option>
<option>Familial Alzheimer's Disease</option>
<option>Forced Normalization</option>
<option>Frontal Lesion</option>
<option>Frontal-Temporal Dementia</option>
<option>Guillain-Barre Syndrome</option>
<option>Hemiparesis</option>
<option>Hemiplegia</option>
<option>Herniation</option>
<option>HIV</option>
<option>Huntington's Disease</option>
<option>Hydrocephalus</option>
<option>Infectious Diseases</option>
<option>Lobotomy</option>
<option>Lupus</option>
<option>Lyme Disease</option>
<option>Medication</option>
<option>Meningioma</option>
<option>Mesial Temporal Sclerosis</option>
<option>Metabolic Disorder</option>
<option>Migraine</option>
<option>Mild Cognitive Impairment-Amnestic</option>
<option>Mild Cognitive Impairment-Other</option>
<option>Mild Cognitive Impairment-Vascular</option>
<option>Mixed Dementia</option>
<option>Movement Disorders (non-PD)</option>
<option>MS/Demyelination</option>
<option>Multiple System Atrophy</option>
<option>Narcolepsy</option>
<option>Neuropathy</option>
<option>Neurosurgical (non-lobotomy)</option>
<option>No Cognitive Impairment</option>
<option>Normal Pressure Hydrocephalus</option>
<option>Obesity</option>
<option>OCD Deep Brain Stimulation</option>
<option>OCD/Gamma Knife</option>
<option>Parkinson's Disease</option>
<option>Parkinson's Disease-Vascular</option>
<option>Parkinson's Plus Syndrome</option>
<option>Personality Disorder</option>
<option>Pituitary Disorder</option>
<option>Pregnancy</option>
<option>Primary Progressive Aphasia</option>
<option>Progressive Supranuclear Palsy</option>
<option>Psychiatric Disorders</option>
<option>Psychogenic</option>
<option>Radiation Necrosis</option>
<option>REM Sleep Behavior Disorder</option>
<option>Sarcoidosis</option>
<option>Schizophrenia</option>
<option>Spinal Cord Disorder</option>
<option>Stroke: Hemorrhagic</option>
<option>Stroke: Large Vessel</option>
<option>Stroke: Posterior Circulation</option>
<option>Stroke: Small Vessel Subcortical</option>
<option>Subcortical Vascular Disease</option>
<option>Subdural Hematoma</option>
<option>Substance Abuse</option>
<option>Tardrive Dyskinesia</option>
<option>Tourette's Syndrome</option>
<option>Toxin</option>
<option>Transient Ischemic Attack</option>
<option>Traumatic Brain Injury</option>
<option>Trigeminal Neuralgia</option>
<option>Tumors</option>
<option>Tumors vs. Stroke</option>
<option>Vascular Dementia: Large Vessel</option>
<option>Vascular Dementia: Small Vessel</option>
<option>Vasculitis</option>
<option>Wernick-Korsakoff Syndrome</option>
</select><br>
Diagnostic Code <input type="text" name="DiagnosticCode" size="6" tabindex="5" value="<%=oRS("DiagnosticCode"%>"><br>
Subcortical Hyperintenisites (SH) <select size="1" name="SH">
<option>Mild</option>
<option>Moderate</option>
<option>Severe</option>
</select></p>
<input type="Hidden" name="PatientID" value="<%=oRS("PatientID"%>">
<p><input type="submit" name="Action" value="Update" tabindex="7"><input type="reset" value="Reset" name="B2"></p>
</form>
<%
ElseIf (whichaction = "Update" Then
connectString = "DRIVER={Microsoft Access Driver (*.mdb)};" & "DBQ=" & Server.MapPath("C:\Inetpub\ & ";"
set myConnection = Server.CreateObject("ADODB.Connection"
myConnection.Open connectString
objRS = Server.CreateObject("ADODB.Recordset"
strFirstName = request.form("FirstName"
strLastName = request.form("LastName"
strDOB = Request.form("DOB"
strEducation = Request.form("Education"
strDiagnosis = Request.form("Diagnosis"
strDiagnosticCode = Request.form("DiagnosticCode"
strSH = Request.form("SH"
PatID = Request.Form("PatientID"
strQuery = "INSERT INTO Patients(FirstName, LastName, DOB, Education, Diagnosis, DiagnosticCode, SH) VALUES "
strQuery = strQuery & "('" & strFirstName & "','" & strLastName & "','" & strDOB & "','" & strEducation & "','"
strQuery = strQuery & strDiagnosis & "','" & strDiagnosticCode & "','" & strSH & "') WHERE PatientID = " & PatID & ";"
Response.write(strQuery)
myConnection.Execute strQuery
'objRS("FirstName" = strFirstName
'objRS("LastName" = strLastName
'objRS("DOB" = strDOB
'objRS("Education" = strEducation
'objRS("Diagnosis" = strDiagnosis
'objRS("DiagnosticCode" = strDiagnosticCode
'objRS("SH" = strSH
'objRS.Update
End If
%>
</BODY>
</HTML>