Sunday, December 8, 2019

Pass value from parent to child window in php

parent.php <?php $userid=37; echo "<form><input name=\"$userid\" align=\"center\" class=\"button btn btn-primary\" type=\"button\" onclick=\"window.open('popup.php?id='+$userid,'windowfrm','menubar=yes,toolbar=yes,scrollbars=yes,resizable=yes,width=783,height=auto')\" value=\"Printable Version\"></div>\n</form>\n\n"; ?> popup.php <?php $userid = $_GET['id']; echo $userid; ?>

1 comment:


  1. I guess I am the only one who came here to share my very own experience. Guess what!? I am using my laptop for almost

    the past 6 years, but I had no idea of solving some basic issues. I do not know how to

    Download Cracked Pro Softwares
    But thankfully, I recently visited a website named Crack Software Free Download
    All Pro Cracked Softwares Download
    PhpStorm Crack

    ReplyDelete

Extract Domain from email in Excel or Google sheet

  =TEXTAFTER( A2 , "@") or, =MID(A1, FIND("@", A1) + 1, LEN(A1) - FIND("@", A1))