Is there any way to show a PHP document in an HTML frame? I use the frameset and the frame commands, but they only work with other HTML documents. I just get a white frame when I try it.
Is there any way to show a PHP document in an HTML frame? I use the frameset and the frame commands, but they only work with other HTML documents. I just get a white frame when I try it.
I made a little head way, but I still cannot get my main php page to show up in the middle. I don't understand why it won't, but the two side frames which are both php too show up. Someone help me!
The main page had a include tag in it, so I guess it wouldn't work through a frame. No matter now. I found an alternative to the include and now it works just fine.
Try the IFRAME tag. It will work properly and I am using it to display a search box in my site. It can also be customized using attributes. The format is:
<iframe src="path of php file" marginwidth="x" frameborder="x" height="xxx" scrolling="no" width="xxx"></iframe>
replace the "x" with the value you need....
I just wonder do not you need marginheight="x" as well ? - or is this just required if you want to use the place over the frame ? the question is do you need marginheight=0 or can you just leave it ?
The other thing is, I do not see any reason why to combine php with frames.
Regrades Snoop1990
You can leave it... Its working fine with firefox, Opera and Internet explorer....
Haven't tried with other browsers....