> I am having trouble with is comparing the username to
> $_SESSION['friends'] which is a list of 1 or more usernames. If there
> is a match I want to set type to 'friend'.
...
> //else if (username found in $_SESSION['friends'])
This has nothing to do with maps.
The first underlying question is really "how to pass a string held in
server-side php to the client-side javascript in the created
webpage"
... which you already solved in this line
if (username == "<?php echo $_SESSION['valid_user']?>")
The second part is "how to search within one string for a target
string" which is a fairly common javascript subject, for example
http://www.tizag.com/javascriptT/javascript-string-search.php
Having got the basics working, you might want to enhance to deal with
cases like null or whitespace strings.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.