On Oct 7, 4:26 am, Lan Mind <[EMAIL PROTECTED]> wrote:
> I'm worried about putting the PHP inside the
> javascript, script inside a script?

maybe the easiest way is to create a global variable as the first
script in your homepage

<script type="text/javascript">
  var DockhawkToken = "<?php echo $_SESSION['token'] ?>";
</script>

then append it to the URL when you call your javascript

onsubmit="getMarks(this.action + '?name=' + escape(this.name.value) +
'&token=' + DockhawkToken); return false;"


                        function getMarks(url)
                        {
                                var request = GXmlHttp.create();
                                request.open("GET", url, true);
--~--~---------~--~----~------------~-------~--~----~
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