How can I store a JavaScript prompt value into a php variable? I tried some stuff but it did not work out. Here is is the code... I am doing it to pass the function mkdir(); in php , after getting the name of the folder from the prompt screen...
I simple have no idea, please help... The code is just a random try to do the same... i know it's wrong... thanks in advance...
<script language="java script">
var php_var = "<?php echo "Hello!"; ?>";
var variable= prompt("Hello",php_var);
</script>
<?php
$variable = "<script language=\"javascript\"> variable </script>";
?>