<script language=’javascript’>
var nom = 3;
</script>
<?php
$nom = “<script language=’javascript’> document.write(nom);</script>”;
echo $nom;
for($i=0; $i<$nom; $i++)
{
echo “Test”;
}
?>

—————————————————————————

JS:
document.getElementById(“i1″).value = jsVar;

HTML:
<form method=”GET” action=”action.php”>
<input id=”i1″ name=”i1″ value=””>

</form>

PHP:
$phpVar = $_GET[“i1”]