Updating a restriced page
Posted on 2005-04-25
I have a site which allows members to enter their profile. The profile contents go into a MySQL database and are displayed as php pages in the site.
I want to allow my users to be able to update their profile - but want to allow them only to be able to access their particular page/profile on the database and not have access to the other profiles within the database.
Instead of a password and username, I want the person just to enter their email address and then be taken to the profile featuring that particulat email address in the database (their profile).
The email address would be the unique identifier in this case.
I have created a simple update record form but I don't know how I would create a page that asks for an email address and then (if a valid email address is supplied) takes the member to the database page with the matching email address.
Any thoughts or ideas on this one would be greatly appreciated.