I got a javascript for send value to a Popup but only works with $_GET['value']
because when a change to $_POST['value']
it shows this message
Notice: Undefined index: value in C:\wamp\www\corti\presupuestos\precio.php on line 10
this is the javascript code
function envia(){
var co = $("#codart").val();
var pag = 'precio.php?value='+co;
window.open(pag,'Popwin','height=400, width=400');
}
this is the button
<img src="../png/buscar.png" height="16" width="16" onClick="javascript: envia();">
and this is de popup php file
<?php
$c=$_POST['value'];
echo $c;
?>
thanks for you help and your time