PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello, i'm new to the forum. I'm an actionscript 3.0 developer, but need a php script for a current project. I put something together with php - and it works the way it should. I just want to know I coded it correctly or if it could be coded better since i'll be using it for a client. Basically trying to mimic sites that when you first goto and it asks you what location you want, then saves that in a cookie, and loads the site based on your selection.
This is what I came up with from online sources, and it works.
I guess if it works that's good, and since this isn't a big enterprise application I guess it would be fine for your project. As you grow and take on larger projects you will discover the concept of layering though. The first thing you should master is separating the 'logic' from the 'presentation'. One famous example is smarty (but a horrible framework to use). I use Zend Framework for templates personally, Zend_View can be used standalone