I have a java script like this
index.php
<script>
function openpopup(){
var popurl="news.php?database=$sc
winpops=window.open(popurl,"","width=100,height=100,scrollbars,resizable,")
}
openpopup()
</script>
<? exit; ?>
but $sc isnot working because of it is not a php code.How can i take variables with java and send them to a php file?
Does anyone know anything about it?