KC Here KC Here - 1 year ago 72
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download