lo script di prima mi serviva come base per un'altro script in cui creo una tabella. Lo script completo ora è:
<html>
<body>
<form name="form1" method="get" action="crea.php">
Inserisci il nome del Database: </p>
<input type="text" name="dbname">
Inserisci il nome della Tabella: </p>
<input type="text" name="dbtable">
<?php
for($i=0;$i<$_GET['dbcampi'];$i++){
echo'
Inserisci il nome del campo:';
echo'<input type="text" name="campo">';
echo'<SELECT NAME="tipo">';
echo'<OPTION SELECTED>varchar</OPTION>';
echo'<OPTION>int</OPTION>';
echo'</SELECT>';
}
?>
<input type="submit" value="Invia">
</form>
</body>
</html>
Richiamato da una form html in cui richiedevo il numero dei campi. Ora per creare una tabella Create Teable, dovrò recuparare dalla query sting risultante i diversi campi cha saranno nell'array $_GET; come faccio a scandire tutto l'array e recuparare il tutto per creare questa tabella?

