php when to use get method?
Posted
by user329394
on Stack Overflow
See other posts from Stack Overflow
or by user329394
Published on 2010-05-17T06:46:54Z
Indexed on
2010/05/17
6:50 UTC
Read the original article
Hit count: 299
php
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.
© Stack Overflow or respective owner