screamingroses wrote in php

Howdy... me again...

Thanks to everyone who had their say about uploads... So I decided that for the target audience and the kind of site mine is, I'm going to be allowing uploads onto the server for now...

Now, the fun really starts...

With my testing users registered and their profiles in the database, I need to be able to login...

However, it's not that simple...

I would love to just include my header and my footer on the top and on the bottom, of say, index.php... However, dependant on if the user is logged or not, parts if the navigation in BOTH the header and the footer will change... for example, at the very top of my project, TU, it would say "Hello guest, register to check forums, messages" and whatnot, whilst if the user is logged in it would say something you the effect of "Hello Shade, you have 0 Messages | goto your cpanel".

So I'm thinking that a class file will be best, I've heard good things about their flexibility, and the ease of adding onto them...

So now I need to be able to actually be able to login... and start creating said class file...

Is there anyone that could provide a link to a tutorial... Or a small tidbit of code to get me started...?

Cheers,

-Shade