Here is what I have now:

page- http://www.dockhawk.com/
javascript- http://www.dockhawk.com/javascript.js

In the javascript the passt(); function is the very last function of
the script.

In the HTML form I'm not sure how to pass the PHP $_SESSION['token']
in the javascript's function argument. Currently: passt(<?php echo
$_SESSION['token']; ?>);

I'm currently testing for the token calling to testphp.php William
referred to me earlier, here is the code:

<?php

session_start();

// get token variables
$token_session = $_SESSION['token'];
$token_url = $_GET['token'];

// compare them
$comparison = $token_session == $token_url;

// set the token to a new value to ensure it is only used once.

$_SESSION['token'] = uniqid(md5(microtime()), true);

echo 'Token in session [' . $token_session .']<br>';
echo 'Token from URL [' . $token_url . ']<br><br>';
echo 'Are they equal? ' . ($comparison ? 'Yes' : 'No') . '.<br>';

if (!$comparison) {
  die('Invalid token.');
} else {

  echo 'Valid token.';

}

?>

Thank you





On Oct 6, 9:24 am, "maps.huge.info [Maps API Guru]" <[EMAIL PROTECTED]>
wrote:
> What is your latest test URL? It looks like that should work, but it
> would be nice to see it in action.
>
> -John Coryat
>
> http://maps.huge.info
>
> http://www.usnaviguide.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to