iframe

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
SidewinderX
Forum Contributor
Posts: 407
Joined: Fri Jul 16, 2004 9:04 pm
Location: NY

iframe

Post by SidewinderX »

how do i display $text in an iframe?
kettle_drum
DevNet Resident
Posts: 1150
Joined: Sun Jul 20, 2003 9:25 pm
Location: West Yorkshire, England

Post by kettle_drum »

Code: Select all

<?php
echo $text;
?>
But this needs to be in the page that the iframe loads. If not you will need to use javascript to hide the value of $text on the main page, and then display this on the iFrame page using javascript.
Post Reply