foreach($_REQUEST as $key => $value) { $query = "insert into table (campo) value ('".$value."')"; $result = mysql_query($query); }