how to add login to homepage
okay, so i use adobe dreamweaver cs3, and im creating a website for art sharing (photos, music, games, and video sharing) where members are able to register and submit there own art to the site (forums). my basic layout so far, is a template that controls all the main pages, such as "about us", "privacy policy" etc., and then the home page that isn't connected to any templates. now my question is, how would i create a login and put it on the home page? i've read a few tutorials and all of them are on creating a separate login page which isn't what i want. yes, i want a login successful page separate but i want the login on the homepage.
my next question is, how do i test the php codes on my website without having to upload the site to a paid webhosting website? do i just open it up in internet explorer? i have apache, mysql, and php working on my computer btw