Include PHP into PHP ?

More
9 years 10 months ago #13913 by gunter
I am trying this for over a week and probably tested all the PHP Guestbooks available online as well as the CGI/Perl ones.

I am using a template from the Portal ( www.eucmh.com ) and I would like to have the 2 parts of the guestbook on the same template. 1 the form 2 the view guestbook

I have installed one that works in it's own environement but I don't get it included in the template.
I saw then this guestbook and I like it to

what about the include

right now - www.eucmh.com/pages/kilroy.php

When I was there, there was no one.
When I was gone, they were all there !

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #13914 by Pete
Replied by Pete on topic Include PHP into PHP ?
Hello Gunter,

Wouldn't it be easier to put the Guestbook in an iFrame and embed it in the PHP page that way?

Thanks
Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #13915 by gunter
Replied by gunter on topic Include PHP into PHP ?
I don't like the borders generated by a</frame>

When I was there, there was no one.
When I was gone, they were all there !

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #13916 by Pete
Replied by Pete on topic Include PHP into PHP ?
You could set the border size to zero. That way you wouldn't see a border at all.

Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago - 9 years 10 months ago #13917 by gunter
Replied by gunter on topic Include PHP into PHP ?
I have no clue about the way to do this ...
but it could be looking great

When I was there, there was no one.
When I was gone, they were all there !
Last edit: 9 years 10 months ago by gunter.

Please Log in or Create an account to join the conversation.

More
9 years 10 months ago #13918 by Pete
Replied by Pete on topic Include PHP into PHP ?
Here is a sample code on how to put an iFrame with no border on a page:
Code:
<iframe src="guestbook/" width="600" height="500" frameBorder="0">Browser not compatible.</iframe>

Here "guestbook/" would be the relative path from your PHP file to the guestbook directory. You also have to make sure that you are outside any PHP tags you may have in the PHP file, so:
Code:
<?php // Some php code here ?> YOUR IFRAME GOES HERE <?php // Some more php code ?>

Let me know if this helps.

Thanks,
Pete

DigiOz Webmaster
www.digioz.com

Please Log in or Create an account to join the conversation.

Time to create page: 0.126 seconds
Powered by Kunena Forum