Hello experts!
I have login page, which take email ID n password. The user(which are already member)enter ID n password, after hitting submit button, welcome page showing there emailID should open. e.g Welcome pooja.j@xyz.com.

My prob. is that welcome page opens, but it shows only Welcome instead of welcome pooja.j@xyz.com... plz, help me to display emailID also..Here are my attachments.

Recommended Answers

All 4 Replies

in your index.php, change line no 14, pass connection resource and then try.


$rs=mysql_query($query, $con);

I've edited it and uploaded one for you.
you may need a restrict access server behaviour.
i would also recommend attaching your mysql in an include once so it adds security.
you do not need to make your $_SESSION = $_POST
as that is reseting your session email to NULL as you are not posting. view my forum on displaying usernames. as it is basically the same idea

Thanks....its working...now i m trying next step, that displaying private data of that particular login user...let's see what happened...thanks for help...

Which solution worked?

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.