Hexagora Forum
Hexagora Forum
Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Dynamic HTML Editor
 Dynamic HTML Editor
 php include issue
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Martin1
Super User

Netherlands
626 Posts

Posted - 28 Dec 2007 :  13:17:23  Show Profile  Reply with Quote
I am trying to get a php include page to work. It's a rather simple piece of info that I want to include into every page (I am including an image and a date which you can see at the bottom right).

But when I include it, it screws up my page by moving the entire page to the right and also kills my png image at the bottom left.

The way it should be (this example is without the php include):
http://www.isis-books.nl/index.html

the way it is with the php include:
http://www.isis-books.nl/test/index.php

Does anyone know what is going wrong?

Martin

s.dav
Site Admin

Italy
3364 Posts

Posted - 28 Dec 2007 :  13:55:58  Show Profile  Visit s.dav's Homepage  Reply with Quote
Martin, I suggest you to use an HTML box and put the php code inside it.
If your problem persists please let us know the code generated by the php.

Regards, Davide
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 28 Dec 2007 :  14:38:17  Show Profile  Reply with Quote
Maybe I am misunderstanding but I did use a html box in which I put the following:

<?php include("datum.php"); ?>

Martin
Go to Top of Page

petran
Super User

Netherlands
345 Posts

Posted - 29 Dec 2007 :  01:13:29  Show Profile  Visit petran's Homepage  Reply with Quote
It seems to me that your "datum.php" file comes complete with html, head and body tags. This might cause your problem. In the HTML box you only need to place the PHP code within the <?php......?> tags. Ofcourse you can include this code, but the "datum.php" file should not have the html, head and body sections.

--------

regards

Petran

Edited by - petran on 30 Dec 2007 17:01:52
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 07 Jan 2008 :  14:46:17  Show Profile  Reply with Quote
Thanks Petran!

My bad[2 H:)].

Martin
Go to Top of Page

Martin1
Super User

Netherlands
626 Posts

Posted - 07 Jan 2008 :  14:47:49  Show Profile  Reply with Quote
Thanks Petran!

My bad[2 H:)].

Martin
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Hexagora Forum © s.dav Go To Top Of Page
Snitz Forums 2000