Google Answers Logo
View Question
 
Q: Convert iframe into php-include ( No Answer,   4 Comments )
Question  
Subject: Convert iframe into php-include
Category: Computers > Programming
Asked by: winterberg-ga
List Price: $4.00
Posted: 12 Oct 2005 12:03 PDT
Expires: 11 Nov 2005 11:03 PST
Question ID: 579423
I am PHP-Beginner.

Can someone the source-path of this IFRAME convert into an include?

<IFRAME SRC="archive_inc.php?id=<?PHP print $row5["id"]; ?>"
WIDTH="100%" HEIGHT=400></IFRAME>

I like that i can include the archive_inc.php?id=<?PHP print
$row5["id"]; ?>" , but how must i write the include that it works?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Convert iframe into php-include
From: arvindjagtap-ga on 14 Oct 2005 00:36 PDT
 
It very simple use following line....

<IFRAME SRC="archive_inc.php?id=<?=$row5['id']; ?>" WIDTH="100%"
HEIGHT=400></IFRAME>
Subject: Re: Convert iframe into php-include
From: diogoresende-ga on 27 Oct 2005 12:16 PDT
 
Hi,

From what I understand, you want to get rid of the iframe and just do
something like:

<?php include "archive_inc.php?id={$row5['id']}"; ?>

Maybe it's not this but I think I'm walking towards what you want.
Please be more specific.
Subject: Re: Convert iframe into php-include
From: crazyloco-ga on 04 Nov 2005 12:24 PST
 
how about:

<? $id=$row5[id]; include "archive_inc.php" ?>
Subject: Re: Convert iframe into php-include
From: isitaboat-ga on 17 Nov 2005 09:26 PST
 
Or better (if register globals is off, as it should be);


<?php
$_GET['id'] = $row5['id'];
include "archive_inc.php";
?>

Or you could just write a function. The above way is a bodge.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy