In order to pass a session Id using the URL
This works fine:
The h1 tags are inside little divs like buttoms, so the divs are links to home.php to:
Any idea ? how can I send the session ID to the next page using Javascript as a link sender (location.href) ?
Thanks
This works fine:
Code:
<h1 id="goHome"><a href="home.php?<?php echo htmlspecialchars(SID); ?>">Inicio</a></h1>
The h1 tags are inside little divs like buttoms, so the divs are links to home.php to:
Code:
function myMenu() {
olinkA=document.getElementById("goHome");
//add event...
addEvent(oLinkA,'click',goNow);
}
//this does not work
//the home.php has no session at all
function goNow() {
location.href="home.php?<?php echo htmlspecialchars(SID); ?>";
}
Any idea ? how can I send the session ID to the next page using Javascript as a link sender (location.href) ?
Thanks