Hi- Very new to this. here is the question.
I have index.html.
On this page are four links:
linkone
linktwo
linkthree
linkfour
I want to code the href to pass a variable to a php page (pagetwo.php), then based on the variable in the href, use include to display a file.
My includes are txt files. af.txt, gl.txt, etc...
So, I am thinking linkone on index.html would be this:
/pagetwo.php?page=af
/pagetwo.php?page=gl
On pagetwo.php... I am looking for secure code to say
if the variable is 'af' include the file 'af.txt'
So, two questions:
1.)I've done some reading, and simply using an include seems like a security risk and
2.) What is good code for the second page.
Thanks in advance!