Hello I am looking for a way if posible to POST to an i frame with out haveing to creat a script to read it from the main page and add it to the IFrame my site works using a url like http://www.dlgnetworks.com/?id=home and in the index.php it does
<iframe name="frame" src="include.php?id=<?= $id ?>
and in include.php has
<?
$id = $_REQUEST['id'];
if ($id == NULL || $id == home)
{
$page = "body.php";
}
else
{
if (file_exists($id . ".php"))
{
if (eregi("C:[\\]http[\\]dlgnetworks_com", realpath($id . ".php")))
{
$page = "$id.php";
}
else
{
echo "<center><div id=\"error\">You are in violation<br /><br />";
echo "Your IP Address (".$_SERVER['REMOTE_ADDR'].") has been added to our ban list</div></center>";
$file = fopen('ips.txt','a+');
fputs($file,$_SERVER['REMOTE_ADDR']." - ".realpath($id . ".php")."\n");
fclose($file);
exit();
}
}
else
{
$page = "404.php";
}
}
include ($page);
?>
now all works fine if in a form i use <form action="?id=join" method="post" name="join"> but this will only change the pace in the iframe and leave the main URL http://www.dlgnetworks.com/?id=signup so you cant refresh if i try to use <form action="?id=join" method="post" name="join" target="_top"> it will do what i want it to do in the address bar IE.. dlgnetworks.com/?id=join but of corse i cant read the $_POST[] array on the included page is there a way to read the POST array or send it to the IFrame??
Thank you If you cant figure out what in talking about you can email me @ halflife@cableone.net