I would use the session functions with URL parameter but PHP can't transmit
the SID to the link-URL.
This methods work:
1.
<?php
session_id();
session_name();
session_register("username");
session_write_close();
?>
<a href="admin/admin.phtml?<?=SID?>">next</a>
Result: http://admin/admin.phtml?PHPSESSID=85e6077fd4ff6bdd738707335f283ef5
2.
<?php
session_id();
session_name();
session_register("username");
session_write_close();
?>
<script language="JavaScript">
function Test()
{
window.location.href="admin/admin.phtml?<?=SID?>";
}
</script>
Result: http://admin/admin.phtml?PHPSESSID=85e6077fd4ff6bdd738707335f283ef5
And this doesn't work:
<?php
session_id();
session_name();
session_register("username");
session_write_close();
echo("<script
language=\"JavaScript\">window.location.href=\"admin/admin.phtml?<?php=SID?>
\";</script>");
?>
Result: http://admin/admin.phtml?<?=SID?>
PHP doesn't display the correct SID.
Instead the string <?=SID?> were displayed!
Thank you!!!
bye
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]