php when to use get method?
- by user329394
how all,
when is the right time to use $_GET['data']?
i want to pass value of userid from page A to page B by using popup javascript.
$qry="SELECT * FROM dbase WHERE id='".$id."'";
$sql=mysql_query($qry);
$rs=mysql_fetch_array($sql);
<script language="JavaScript">
function myPopup() {
window.open( "<?=$CFG->wwwroot.'/ptk/main.php?task=ptk_checkapp&id='.$rs['userid'];?>" ,"myWindow", "status = 1, height = 500, width = 500, scrollbars=yes,toolbar=no,directories=no,location=no,menubar=no, resizable='yes';" )
}
</script>
calling by hyperlink:
<a href="#" onclick="myPopup()">
<?=ucwords(strtolower($rs->nama));?>
</a>
It seems that , the $rs['user'] dont hold any value on it. can tell me what problem or may be solution?
thank you very much.