valient13 Utente Attivo 6 Apr 2012 96 0 0 Sicilia 5 Mag 2012 #1 PHP: while ($rowend = mysql_fetch_row($resultend)) { $incend+=1; $port1_{$incend}=strip_tags($_POST['por1_'.$incend]); echo $port1_1; } Allora è sbagliato fare questo: $port1_{$incend} un'altro metodo?
PHP: while ($rowend = mysql_fetch_row($resultend)) { $incend+=1; $port1_{$incend}=strip_tags($_POST['por1_'.$incend]); echo $port1_1; } Allora è sbagliato fare questo: $port1_{$incend} un'altro metodo?
alessandro1997 Utente Attivo 6 Ott 2009 5.302 1 0 26 Roma alessandro1997.netsons.org 5 Mag 2012 #2 Prova così: PHP: <?php $varname = "{$port1}_{$incend}"; $$varname = strip_tags($_POST["port1_{$incend}"]); ?>
Prova così: PHP: <?php $varname = "{$port1}_{$incend}"; $$varname = strip_tags($_POST["port1_{$incend}"]); ?>
N Nefyt Utente Attivo 17 Apr 2012 1.102 0 0 5 Mag 2012 #3 Gestiscilo tramite array no? PHP: $port1 = array(); while ($rowend = mysql_fetch_row($resultend)) { $incend+=1; $port1[$incend]=strip_tags($_POST['por1_'.$incend]); echo $port1[$incend]; }
Gestiscilo tramite array no? PHP: $port1 = array(); while ($rowend = mysql_fetch_row($resultend)) { $incend+=1; $port1[$incend]=strip_tags($_POST['por1_'.$incend]); echo $port1[$incend]; }