array_key_exists('Token', $_POST) && $_POST['Token']!=")
After the not equal operator, it's two single quote, not a double quote ;-)
[quote]Is the 'tokenfield' the div on index.php which will show the token information?[/quote]
TokenField is the ID of the hidden form field Token
[quote]Is this the information that makes the token, or is it the javascript makes the token?[/quote]
Here, it's the JS who make the token. The Token is just a piece of text, in my example, something like "ExportXYZ123456" (the number is a Unix Timestamp).
This text go to the server within the form data, php catch it, and make a cookie with this text and send it to the browser.