Jump to content

Pass value


pasanewa

Recommended Posts

I have a Javascript function. I have a checkbox whose value has to be passed to PHP page if it is checked.

that is if checkbox.checked = true..

 

I did=>

 

var showlabel;

 

if(chkbox6.checked==true)

{

showlabel.push(chkbox6.value);

 

}

request.open("GET","DrawMap.php?&chklabel="+showlabel,true);

 

 

 

THEN AT THE PHP page DrawMap.php, i did like this=>

 

$labelchk=$_GET['chklabel'].value;

 

BUT $labelchk is NULL...

WHY is it so ???

 

 

HELP plz..

Link to comment
https://forums.phpfreaks.com/topic/45696-pass-value/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.