He everyone,

I want to make my form pass the data into a string when the button is clicked... But it ain't working...

Code:
<HTML>
  <HEAD>
    <TITLE>Test formulier</TITLE>
    <SCRIPT language="VBScript ">
       function cmdToHosting_OnClick()
         Dim strOrganisatie
      
         strOrganisatie = Document.persgegevens.organisatie.Value
         MsgBox ("Data =" & StrOrganistatie)
       End Sub
    </SCRIPT>
  </HEAD>
  <BODY>
    <FORM method=GET name="pergegevens" border="1">
     <TR>
       <TD>
         Naam organisatie
       </TD>
       <TD>
         <INPUT name="organisatie" size="30">
       </TD>
     </TR><TR>
       <TD>
         Naam contactpersoon
       </TD>
       <TD>
         <INPUT name="contactpersoon" size="30">
       </TD>
     </TR><TR>
       <TD>
         <INPUT type="button" name="cmdToHosting" value="Hosting toevoegen">
       </TD>
      </TR>
    </FORM>
  </BODY>
</HMTL>
Plz look for errors, cause I'm pretty new to VBScript it probably is a newbie error

Grtz,

Bloged

P.S. Can you pass data between two forms located on other pages wich are loaded after eachother