Hello,
I'm trying to do like "Welcome username" as in phpbuilder for my website.
Welcome username should appear in every page once the user signs in.
I want to put this welcome username in the page_header.php (this appears on everypage with the logo).
There is a sign in link on page_header.php. Once the user clicks that, it goes to sign_in.php. After the user enters login and password and clicks the continue button, the index.php (the main home page) should display with "Welcome username".
How can I pass the username as a query string from sign_in.php into page_header.php through index.php? Can someone tell me the best method to go about this using php or javascript?
I have put page_header.php in iframe in index.php. LIke the following:
index.php
<div>
<iframe src ="/page_header.php" width="100%" height="129" scrolling="no" frameborder="0">
<p>Your browser does not support iframes.</p>
</div>
sign_in.php
function mySubmitFunction(which)
{if (window.location.search=="?sign_in_flag=true")
{ which.action="index.php";
which.submit();
}
else
.......
page_header.php
<div>Welcome username</div>
thank you.