I'm pretty new to php.
I have an index.php page that has a login (submit-type button). Successful login leads to code, including
Code: Select all
include("header.php")
include("show_intro.php")"show_intro.php" shows (below the header navigation buttons of header.php) some content.
Clicking a (header) navigation submit button should lead to the same header.php, but with a different show_xxx.php (e.g., for my photos, "show_florida,php, show_georgia.php, etc).
On the initial page, index.php, I can handle the submit-button click. What I don't know is how to handle checking for one of the navigation submit-button clicks, and in particular, having such a click result in the paired includes: header.php and show_xxx.php.
Should the code to handle the clicks be in header.php -- wouldn't this make header.php self-referencing, circular or some other problem??
Needless to say, in addition to explanation, specific code would be most welcome.
Many thanks,
-- Stan