How about all,
$ _GET ['data'] is the right time to use?
I want to give value of user edit from page A to page B by using popup javascript.
$ qry = "SELECT * dbase WHERE id = '" $ id "'"; $ Sql = mysql_query ($ qry); $ Rs = mysql_fetch_array ($ sql); & Lt; Script language = "javascript" & gt; Function myPopup () {window.open ("& lt;? = $ CFG- & gt; wwwroot. '/ Ptk / main.php? Function = ptk_checkapp & id ='. $ Rs ['userid'] ;? & Gt; "," MyWindow "," status = 1, height = 500, width = 500, scrollbars = yes, toolbar = no, directories = no, location = no, menubar = no, resizable = 'yes'; ") } & Lt; / Script & gt;
Calling via hyperlink:
& lt; A href = "#" onclick = "myPopup ()" & gt; & Lt ;? = Ucwords (strtolower ($ RS- & gt; Nama)) ;? & Gt; & Lt; / A & gt;
It looks like $ $ ['user'] does not have any value on it, can tell me if there is a problem or what is the solution?
Thank you very much.
To get the parameter from the URL to request the page, $ _ GET
Super Global is used. If you want to get a variable such as http://site.com/page.php?variable=value
, you receive $ _ GET ['variable'] < / Code> will use
Value
.
Comments
Post a Comment