Forum Moderators: coopster
For example, I have a list of items that has question mark on the side for help. If the user clicks the question mark, it will open a pop-up window with the text (ang graphics) in it.
Is it possible to just create one template and pass the .html or text files to that template?
IŽd suggest reading Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post which contains a lot of useful information.
In PHP [php.net] you can access the parameter passed in the query string via the $_GET [php.net] super global array. You could then include() [php.net] a file depending on the value of such a parameter. Be sure to check any user supplied data since it is inherently insecure. Unless PHP [php.net] runs in secure mode and/or you check the filename a user could use a value of /etc/passwd to retrieve your password file (if your script reads and echo() [php.net]s files whose filename is supplied by a query string argument).
Search for include() [php.net] on WebmasterWorld or follow the links to the PHP [php.net] manual.
HTH Andreas