thibo1025 Posted March 31, 2006 Share Posted March 31, 2006 is it possible to use the include tag like an iframe?What I mean is that I want to create links that will chrage a page in my include tag with something like this: <html><head><title></title></head><body><a onClick="$page = 1.html">1 </a><a onClick="$page = 2.html">2 </a><?php include($page); ?></body></html> Link to comment Share on other sites More sharing options...
real_illusions Posted March 31, 2006 Share Posted March 31, 2006 <?phpinclude('somefile.php');?>and somefile.php should just be code..no <html> or <body> tags, as that will cause validation errors. Link to comment Share on other sites More sharing options...
calvin182 Posted March 31, 2006 Share Posted March 31, 2006 i think what they want to do is have an area in the page where it acts like an iframe so you can click different links and different include files will load. Link to comment Share on other sites More sharing options...
real_illusions Posted March 31, 2006 Share Posted March 31, 2006 ahh..i tried that with ajax once..and it didn't work when i had a contact page and it needed to process the information on a seperate php page.i cant remember where i got the script..but it was ok..not that great..needed some work doing to it to make it easier. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now