Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Web Prototyping on PHP ???

I need some help for my personal project a web prototype for now, just practicing my idea into php (advice or suggestion).

DESCRIPTION: I create this web it is "http://www.castillowebenterprise.com/copraco-prototype"

<?php include('header.php'); ?> <?php echo '<iframe src="http://castillowebenterprise.com/copraco-prototype/home.php" width="997px" height="590px" frameborder="0"></iframe>' ?> <?php include('footer.php'); ?>

There are 3 section, one is header.php which is the code was include in index.php and it contains menu "home, products, about and contact. 2nd. iframe and the 3rd. footer.php

PROBLEM: I have pages which is product.php about.php, and contact.php is there any way to call this pages and display it to the iframe from index.php using the menu from header.php? Should I create another script and create a function or array? I know this is crazy but I need more practice on php... any advice or suggestion?

Thanks and God Bless...

1 Answer

Hello,

I believe that you would name your iframe and then from the link's target option put the name of the iframe. This would open the link in that frame. Hope this is helps.

Cheers!

Wow.... it did work :D hehehehe.... thank you very much....