Hi,
Can't get my head around this so thought I'd post here.
Imagine you have a page with various pieces of functionality. To spread this functionality out you're using include(page.php); statements and separating the different bits of functionality out. Now one of these merely displays a list, but on clicking a link in the parent page, you want to load that page again via ajax, but you don't want people to access (inc_page.php) directly? How can I do this? I can't store the page above root as then the js can't call it. I can't use define as with an ajax call. I thought about sending a variable, but then anyone could just look at the js and add the variable themselves.
What's the best way to go about this?
Maybe setting a session = to the variable and checking that the session exists and equals the variable sent along? But then anyone can easily view it once they have the session.
This is bugging me. The inc_page needs to be like a control but not accessed directly.
Thanks