<form method=post name=forma> <input type=input name=inputbox > <br> <input type=submit> </form>
<?php if ($_POST) { echo "<script>"; echo "alert({$_POST['inputbox']});"; echo "</script>"; } ?>