>-----Original Message----- >From: Robert Gruber [mailto:[EMAIL PROTECTED]] >Sent: 26 September 2001 22:19 >To: [EMAIL PROTECTED] >Subject: [PHP-DB] Problem with session function: URL Parameter > > >I would use the session functions with URL parameter but PHP can't transmit >the SID to the link-URL. > >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 That's because you're using <? ?> when you're already inside a php block. Try: "admin/admin.phtml?php=SID" instead. hth -- Jason Wong Gremlins Associates www.gremlins.com.hk Tel: +852-2573-5033 Fax: +852-2573-5851 -- 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]