HubPages Answers Will Soon Be Retired
Please stop by the HubPages Blog for more details.
profile image 47

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

profile image47

lmvus says

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

7 years ago
 |  Comment
dabeaner profile image58

dabeaner says

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

7 years ago
 |  Comment
profile image48

syedhussain says

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

7 years ago
 |  Comment