I got a quick question about the correct way incorporate HTML code into PHP if statements.
If I have the following code:
//WANT MY DIVS, CONTENT, AND FORM HERE
die (“You need to be logged in to view this page.”);
How would I (or how do professionals) insert their divs, content, and forms? Or am I even using the correct method? The page that contains this code is a member only type page that users must be logged in to view.
I am thinking that if I do some type of embedding of an external file then a hacker would find the external file and go directly to that file on the server.
Thanks so much! BTW… I am learning to develop my own app with PHP so I’m mostly a newbie :)