KC Here KC Here - 8 months ago 31
HTML Question

How to run another code in PHP, if the code is successful?

I am learning how to make login panel with session from here. I understood it fully, but I wanna open another file, in that code, when someone enter the right password + email, it only echo

You have entered valid use name and password

How to make it, clear everything on the page, and open a code (which I type)...

May be like, after I login, everything on the screen will get clear, and a image will open.


ya cool so simple, after echo line ie.'echo 'You have entered valid use name and password';', please use this or just replace the line

header('Location: http://www.example.com/');

you can use any link or local file at the place of this example link