Hi,
I have been signed up here for a while, but forgot I was. I hope to get a little assistance though. I would consider myself an advanced beginner of php. I know enough to get myself in trouble, but I do not know as much as I want to know. I have decided to work on a personal project to gain experience and learn a lot more, and eventually work as a free lance php developer, or work as an intern for a developer. Anyways none of that matters to much.
How do you decide what to make functions for and what not to make them for? I am working on a signup script that has 15 fields to be checked. A couple of the fields, like first name and last name I am using the
same checks for, and other stuff like email and password will be used again in the login form. Does it make more sense to put all these in like a form.validate.php file, and include that file and use the functions where needed? Or is this where I should learn more about classes and such? I do all writing procedurally. I can post a sample of the signup script if needed, but no laughing at it.
I am sure there is something out there I can use already, but I won't get experience if I don't do it. I use nothing fancy, in fact I write all my code by hand in notepad. I am not interested in a framework, or template engines. I like to know exactly what is going on before using stuff to make life simpler.
Thanks,
Michael