how to get the username given in login page in the next page

how to get the username given in login page in the next page

You might need to elaborate a touch on what you mean, if you mean when the user has logged in and you want to show that on the page then $_SESSION is best.

If it's a form and you want to check the username in a 'process' page then you can use $_POST.

Hope that helps...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.