i am stuck in the problem, where after user logs in successfuly, i take him to the login thanks page. now on that page i need to retain the login name. I am not sure how to this.
i have written a query string which passes the SID from this page.
<a href="loginthan ks.php?<?php echo htmlspecialchar s(SID); ?>" >
now how can i send the login name to next page.
Also i want to store this value of login name in some session variable, so that i can display this on everypage user navigates. my problem can also be resolved if i can assign the value returned from javascript function to the a session variable on next page, something like this:
this php code is written in loginthanks.php file
<?php
session_start() ;
$_SESSION['user_logged'] = true;
$_SESSION[loginName] = echo '<script type="text/javascript" getLoginName(); ';
?>
where this function returns the login name.
if this code is syntactically correct then i can this value of session variable?
please help!!
many thanks in advance.
i have written a query string which passes the SID from this page.
<a href="loginthan ks.php?<?php echo htmlspecialchar s(SID); ?>" >
now how can i send the login name to next page.
Also i want to store this value of login name in some session variable, so that i can display this on everypage user navigates. my problem can also be resolved if i can assign the value returned from javascript function to the a session variable on next page, something like this:
this php code is written in loginthanks.php file
<?php
session_start() ;
$_SESSION['user_logged'] = true;
$_SESSION[loginName] = echo '<script type="text/javascript" getLoginName(); ';
?>
where this function returns the login name.
if this code is syntactically correct then i can this value of session variable?
please help!!
many thanks in advance.
Comment