I have been working on this problem for weeks.
I just want the script to pass the form data to itself when the button is
clicked and continue with the next function.
<----------------------------------------------------->
set objExplorer = CreateObject("InternetExplorer.Application")
Do While (objExplorer.Busy)
Loop
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 640
objExplorer.Height = 480
objExplorer.Left = 0
objExplorer.Top = 0
objExplorer.Visible = 1
set objDocument = objExplorer.Document
objDocument.Open
objDocument.Writeln "<FORM NAME='Form1'>"
objDocument.Writeln "<B>Choose the areas you are interested in</B>"
objDocument.Writeln "<BR><INPUT TYPE=CHECKBOX NAME='chkIS'> Information
systems"
objDocument.Writeln "<BR><INPUT TYPE=CHECKBOX NAME='chkSE'> Systems
integration"
objDocument.Writeln "<BR><INPUT TYPE=CHECKBOX NAME='chkSA'> System
administration"
objDocument.Writeln "<BR><INPUT TYPE=CHECKBOX NAME='chkMgmt'> Management"
objDocument.Writeln "<BR><INPUT TYPE=BUTTON NAME='Button1'
VALUE='Continue'>"
objDocument.Writeln "</FORM>"
Sub Button1_onclick
Dim Selections, Count
Count = 0
If Form1.elements(0).checked = True Then
Selections = "Information systems"
Count = Count + 1
End If
If Form1.elements(1).checked = True Then
If Count <> 0 Then
Selections = Selections & ", "
End If
Selections = Selections & "Systems integrations"
Count = Count + 1
End If
If Form1.elements(2).checked = True Then
If Count <> 0 Then
Selections = Selections & ", "
End If
Selections = Selections & "System administration"
Count = Count + 1
End If
If Form1.elements(3).checked = True Then
If Count <> 0 Then
Selections = Selections & ", "
End If
Selections = Selections & "Management"
Count = Count + 1
End If
If Selections = "" Then
alert "You did not select any of the choices."
Else
alert "You checked the following choice(s): " & Selections
End If
End Sub
<----------------------------------------------------->