refresh is losing the GET vars in Mac

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
User avatar
Bill H
DevNet Resident
Posts: 1136
Joined: Sat Jun 01, 2002 10:16 am
Location: San Diego CA
Contact:

refresh is losing the GET vars in Mac

Post by Bill H »

I am using this to refresh the parent window when the popup window closes:

Code: Select all

<?php
<script>onload=function(){opener.location.reload(true);self.close()}</script>
?>
It works fine in each of six browsers on the PC platform, but not on the Macintosh. The problem is that the form is called with a url like:

Code: Select all

<?php
inpassn.php?Rid=125
?>
When the form is refreshed the PC platform preserves the "GET" variable, while the Mac does not. The segment of the script that needs to be refreshed is delimited by:

Code: Select all

<?php
elseif (isset($_GET['Rid']))              // need the secondary input form
?>
So what can I do to make the dratted thing work on the Mac?
Post Reply