Citar
Warning: Illegal string offset 'name' in /home/aet/website.com/pages/upload.php on line 34
Notice: Undefined variable: a in /home/aet/website.com/pages/upload.php on line 34
YNotice: Undefined variable: a in /home/aet/website.com/pages/upload.php on line 34
Citar
Warning: Illegal string offset 'name' in /home/aet/website.com/pages/upload.php on line 38
Notice: Undefined variable: a in /home/aet/website.com/pages/upload.php on line 38
Notice: Undefined variable: a in /home/aet/website.com/pages/upload.php on line 38
De momento esto es lo que tengo:
Código
foreach ( $list as $name => $nouse ) { foreach ($$name as $key => $value) { $$key = (int) $$name[$key]; echo $report[$key] = $key . ' variable (from ' . $name . ' ) created1... <span style="color:green;">OK!</span><br>'; } else { $$key = $$name[$key]; // this is line 38 echo $report[$key] = $key . ' variable (from ' . $name . ' ) created2... <span style="color:green;">OK!</span><br>'; } } } else { echo $report[$name] = $name . ' variable created3... <span style="color:green;">OK!</span><br>'; } else { echo $report[$name] = $name . ' variable created4... <span style="color:green;">OK!</span><br>'; } } } else { if ($list[$name] == 'optional') { $$name = 0; echo $report[$name] = $name . ' (optional) variable not filled5... <span style="color:green;">OK!</span><br>'; } }
El html es de lo más sencillo, los arrays los tengo asi:
Código
¿Alguna idea de por qué no funciona?
Gracias!