Prova cosi a me funzia

codice:
<html>
<body>

<center>Opzione: 

<form name="pippo">
<?php
echo "<input type=\"hidden\" name=\"num_campi\" value=\"".$_GET['num_campi']."\">";
for($i=0;$i<$_GET['num_campi'];$i++){
echo "<tr><td><input type=\"text\" name=\"cmp$i\"></td></tr>";
}
?>
</form>
</body>
</html>
per gli errori prova a settare
codice:
error_reporting(E_ALL);
all'inizio dello script per vedere che errori ti ritorna