A form will not be initialized by AJForm unless you want it to. Here is an example AJForm initialization:
<form action="example.php" onsubmit="ajform:exampleCallback();">
Or you can pass arguments to the initializer:
<form action="example.php" onsubmit="ajform:exampleCallback( someVar, 888, 'hello world', 93.789 );">
exampleCallback may be any function name you want. The arguments you pass to exampleCallback may ONLY be a number, quoted string, or global variable name. Here are some valid examples:
Here are some examples of INVALID arguments:
<form action="example.php" method="get" onsubmit="ajform:exampleCallback();">
<form action="example.php" method="post" onsubmit="ajform:exampleCallback( 'this is a string to be passed' );">
<form action="example.php" onsubmit="ajform:exampleCallback( someVar );">
<form action="example.php" onsubmit="ajform:exampleCallback( 109373879 );">