Antonio102 Antonio102 - 1 month ago 6x
HTML Question

Login/registration button to open php file on same page

First of all sorry for my English. I'm working on a little website (I'm learning web design and PHP). As you can see in the page

, there are three buttons: login, registration (register) and guest. I've three scripts, one for login, one for register and one for guest access to site.

How can I show the script "login.php" or "register.php" or "guest.php", just under the buttons, when I click on the corresponding button?

Here are index.php and css files:



use jQuery makes life soo much easier


this is very bare bones. there are better ways to do it tho.