Hey everybody I'm brand new here on PHPBuilder.com. I look forward to working with everyone here and hope to be able to get help when I need it and help those I can. I'm pretty new to PHP but not new to programming. As of right now, I'm trying to figure out how each of the PHP functions work and which ones to use.
I manage a website for a company that sells pneumatics. In the near future, I'm going to switch the page to use PHP instead of JavaScript. Right now, the clients can search for specific products and order them through the website. A feature that the company wants to add to the website is to give the clients the ability to log in when they get to the website. If they log in, certain clients can receive discounts on their prices.
The question I have is this: How can I write the PHP script so that it will recognize when a user is logged in? I have written a couple of test pages to create new users and log in with a username, but how can I get the username to transfer from page to page? Do I use cookies?
I would really appreciate any help or suggestions.