apply iframe with php

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
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

apply iframe with php

Post by valen53 »

I wish to use iframe with php to apply to my system. Firstly I will talk about what kind of page I wanted. I have a page showing the real time information. It use table to arrange the data, something like stock list. It got a countdown timer to refresh the data after 20 second. It only refresh the data, not reload the page.

From my opinion ( I don’t know correct or not ), it use iframe with php in the page,

Test.html

Code: Select all

<iframe name="testFrame" id="testFrame" scroll="no" src=""></iframe> 
<a href="execute.php" target="testFrame">Test it out</a>
In execute.php file, it got a countdown timer also, maybe 10 second refresh a time to get the latest data, then post back to test.html without display the data directly. The countdown timer in test.html will refresh the data in the table after 20 second. Maybe add more rows or changing the data.

I already understand the tutorial from viewtopic.php?t=22620&highlight=iframe
The problem is how to apply the above scenario to my system? Use javascript?

Code: Select all

<script language="javascript"> 
function ValidateAccount() 
&#123; 
   SearchFrame.location.replace("validate.php?SearchField=" + escape(document.myForm.Account.value)); 
&#125; 
function LoadTopFrame(Account, Name, Address) 
&#123; 
   parent.top.myform.Account.value = Account; 
   parent.top.myform.Name.value = Name; 
   parent.top.myform.Address.value = Address; 
&#125; 
</script>
But it looks like not suitable to use this kind of matter.
Anyone have face this kind of problem? Any comment can give me?
Thank to all for reply.
valen53
Forum Contributor
Posts: 137
Joined: Tue Aug 27, 2002 9:29 am

IFrame with PHP, nobody know?

Post by valen53 »

it really hard to find tutorial about iframe with PHP..

who know the tutorial, please let me know.
thank u
Post Reply