FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


PB PHP, Iframe and Javascript





Laurent
Hello,

I would like to refresh a php page with parameters in javascript code,

example.

HTML PAGE :

<HEAD>
<SCRIPT language="javascript">

function DisplayGalery(myParameters)
{
document.getElementById("myIframe").src = 'http://dodztribe.frihost.net/myIframe.php' + '?Arg=\"myParameters\"';
}

</SCRIPT>
</HEAD>
<BODY>
<iframe src="myIframe.php" name="refresh" frameborder=no height="100%" width="100%"></iframe>
</BODY>


into myIframe.php page :
<?php

if(isset($_POST[Arg]))
{
$Arg= $_POST[Arg];
}
else
{
$Arg= "../Arg";
}

..........

?>

this script doesn't work

why and how can i reload a page in my iframe

Thank's
mathiaus
I know very little about javascript sorry so I wont be mutch help.
In my unexperianced thinking pattern :-
did you call that function?

anyways I think whats happening is the url has the ?Arg in it and then in your php script you call it by using $_POST even though you didnt post it and its in the url so I think it should be $_GET instead. Wether it will make the whole thing work??? dunno sorry Confused
Related topics
PHP Question
Problems with document.innerHTML and iframe (javascript)
Selling Yo Momma Joke gen with over 200 jokes! Really cheap!
Page redirect and download
PHP to Javascript
Need help with PHP with Javascript
convertin Html codes to javascript or php! 10 frih$ each!
Javascript news feed?
How Tough is PHP - Part II
php / javascript script works in FireFox browser, but not IE
Simple php or javascript divx webplayer playlist
javascript php html styling and good practice.
Table data print feature using php or javascript?
PHP and Javascript Issue handling data from a mysql query
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.