I have two php files.
index.php
<html>
<head>
<script type="text/javascript">
function openG()
{
window.showModalDialog('profile.php');
}
</script>
</head>
<body>
<input type="button" value="Press" onClick="openG()"/>
<?php
extract($_GET);
if(isset($yes))
echo $yes;
?>
</body>
</html>
and a profile.php file
<html>
<head>
<script type="text/javascript">
function woot()
{
window.close();
}
</script>
</head>
<body>
<form action=index.php method=get>
<input type=text name=yes />
<input type=submit value=Submit onClick="woot()" />
</form>
</body>
</html>
How would I be able to display $yes in the index.php page after the modal window of profile.php is closed? Or how would I be able to refresh the index.php page after profile.php page is closed?