Jump to content

phpeeved

New Members
  • Posts

    3
  • Joined

  • Last visited

phpeeved's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I cant think of any other instances where I will have to use the log in code again, so I was just wondering if that what the basis on knowing whether or not you should make a function for it. Thanks for your guys response, I will turn my login code into a function now.
  2. The file you are trying to display, have u echoed getcwd() in there to ensure that your file paths are correct? I'm not sure which of the two files you are trying to display correctly, and what the file name is in the code. Try to getcwd of the file and see if they match up.
  3. Hey guys, currently working on a project for school where we are building a small web application, very basic stuff... Login page, different accounts, some uploading and really just trying to keep things dynamic while utilizing a flat file database... I have a question with regards to the login page. I always hear more experienced developers telling me to keep things modular. I am trying to have my logic and data seperated, and I will be building a lot of functions for this site. However, the functions are for things that I will be calling I'm various areas of the page. The login though, is just a single instance on the first page the users come to. In your guys experience, would you create a login function? Or just code it right at the top of the login page? Any input you guys have would be greatly valued. Thanks for your time, J
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.