+ Reply to Thread
Results 1 to 6 of 6

Thread: PHP and frames

  1. #1
    spoweb is offline Member spoweb is on a distinguished road
    Join Date
    Nov 2007
    Posts
    51

    Default PHP and frames

    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.

  2. #2
    spoweb is offline Member spoweb is on a distinguished road
    Join Date
    Nov 2007
    Posts
    51

    Default

    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!

  3. #3
    spoweb is offline Member spoweb is on a distinguished road
    Join Date
    Nov 2007
    Posts
    51

    Default

    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.

  4. #4
    bizzard is offline Senior Member bizzard is on a distinguished road
    Join Date
    Jan 2006
    Location
    A small remote village in Kerala, India
    Posts
    467

    Default

    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....

  5. #5
    snoop1990 is offline Senior Member snoop1990 is on a distinguished road
    Join Date
    Dec 2007
    Location
    Germany (in a small town)
    Posts
    357

    Default

    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

  6. #6
    bizzard is offline Senior Member bizzard is on a distinguished road
    Join Date
    Jan 2006
    Location
    A small remote village in Kerala, India
    Posts
    467

    Default

    You can leave it... Its working fine with firefox, Opera and Internet explorer....

    Haven't tried with other browsers....

+ Reply to Thread

Similar Threads

  1. Frames or tables?
    By spoweb in forum Web Graphic, Design, Digital Images
    Replies: 20
    Last Post: 11-14-2008, 01:55 AM
  2. Better looking frames
    By spoweb in forum Web Graphic, Design, Digital Images
    Replies: 2
    Last Post: 02-16-2008, 01:17 PM
  3. Problem with Frames
    By future24 in forum Web Hosting Support
    Replies: 8
    Last Post: 11-28-2005, 08:39 PM
  4. Frames
    By DavoutGraphical in forum Web Hosting Support
    Replies: 2
    Last Post: 11-24-2005, 05:16 PM
  5. Frames Problem
    By Kirk in forum Web Hosting Support
    Replies: 9
    Last Post: 11-17-2005, 03:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts