Hello everyone! Do not kick, learn) There was a need to transfer the php variable from an open popup window to the form on the parent page, followed by auto closing of the popup window. Please direct the true path) Thank you!
- why not do everything in javascript ??? - L. Vadim
|
1 answer
Just with php it does not work, you need to use JS. There are several options, a simple example if the GET parameters are not terrible: the code in the popup file
<script type=""text/javascript> window.close(); window.opener.location.href="http://vashsite.ru?yourkey=<?php echo $php_var;?>"; </script> |