profile image 56

How do I include a variable file name in a php include?


What I really want to do is this: ".".php"); ?> (I know its not right). so that I can include a file named with the state abbreviation.php i.e. AL.php, GA.php etc. This allows me to include state specific data on the generic state page based on the state being called. How do I do this? Keep in mind that I am using Dreamweaver to generate the page since I do not have any programming ability of my own so assume you are speaking to a neophite. Thanks lmvus

 

sort by best latest

dabeaner profile image62

dabeaner says

You can help the HubPages community highlight top quality content by ranking this answer up or down.

7 years ago
 |  Comment
profile image56

lmvus says

You can help the HubPages community highlight top quality content by ranking this answer up or down.

7 years ago
 |  Comment
profile image56

syedhussain says

You can help the HubPages community highlight top quality content by ranking this answer up or down.

7 years ago
 |  Comment