Is there a way for me to password protect a php file rather than the entire directory?
I have posted this question in the php forum but no reply as of yet. Please forgive the multiple posts of this question.
I have a php calendar that allows people to schedule appointments. And once they schedule it, there first name will appear on that specific date and time they choose. But the name that is on the calendar is in the date box and is a link. The link is a "viewdetails.php" file. How do I protect this "viewdetails.php" file only.
In more detail:
So if somebody went to my site and wanted to schedule a service, they could see a persons first name and know that the time slot is booked, but if they clicked on that first name (which is a link to "viewdetails.php", they (the user)could see details (details that include phone number and all of the customers info) . This I want to avoid.. I just want admin people to view the details. So when the user tries to click on the person name in the calendar, it will come back with a .htaccess/.htpasswd method.
Or is there another secure method I could use to secure the "viewdetails.php" file?
What can I do?
Thanks..
I have posted this question in the php forum but no reply as of yet. Please forgive the multiple posts of this question.
I have a php calendar that allows people to schedule appointments. And once they schedule it, there first name will appear on that specific date and time they choose. But the name that is on the calendar is in the date box and is a link. The link is a "viewdetails.php" file. How do I protect this "viewdetails.php" file only.
In more detail:
So if somebody went to my site and wanted to schedule a service, they could see a persons first name and know that the time slot is booked, but if they clicked on that first name (which is a link to "viewdetails.php", they (the user)could see details (details that include phone number and all of the customers info) . This I want to avoid.. I just want admin people to view the details. So when the user tries to click on the person name in the calendar, it will come back with a .htaccess/.htpasswd method.
Or is there another secure method I could use to secure the "viewdetails.php" file?
What can I do?
Thanks..