how to pass java script prompt msg variable value in to php.
<?php
echo '<script type="text/javascript">
var msg = window.prompt("Input a value", ""); alert(msg);
</script>';
//then need to use input value to php
echo $value; //how to get JS value to here?
?>
or is there any other way to get php prompt massages to input value?