PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have an html page with a link (<a href="?page=website" >Website Templates</a>) that I want to return info to another location on the same page. The following is the location of the data to be inserted.
(
<?PHP $file = $_GET["page"]; if (!isset($file)) { include"./website.php"; } else { include "$file.php"; } ?> )
Is there anything wrong with it? It does not seem to be working. The incomming data is in a .php file.
I'm very new to this. In the above code will that function go in the <head> tags? If so what will the link code look like? and what will the code look like where I want the file to be inserted?
Thanks for the help. Problem resoled. I simply did not have my MIME types set on my sever. My orginal codewas just fine but thanks for the input anyway.