I've scratched my head for an hour at this basic task. I'm slowly building up a google api lookup which triggers a google map on a seperate page. I want to pass the initial search text (via a textbox) to the map page via a session (which i think is the best way to do it?) However the function just wont set the session variable. Why can't i even set it to "yes" via the below function?
<script>
function secondFunction() {
alert("pressed");
$_SESSION[$var] = "yes";
}