Jona

All generations.

generate functionTue, 11 Jul 2023

Hazme un formulario utilizando Arrays, Ciclos y funciones

function formulario($tipo,$nombre,$value,$id){ if ($tipo == 'text') { return "<input type='text' name=".$nombre." value=".$value." id=".$id." >"; }elseif ($tipo == 'textarea') { return "<textarea name=".$nombre." id=".$id." >".$value."</textarea>"; }elseif ($tipo == 'submit') { return "<input type='submit' name=".$nombre." value=".$value." id=".$id." >"; } } $formulario = array( '0' => array( 'tipo' => 'text', 'nombre' => 'nombre', 'value' => '', 'id' =>'nombre' ), '1' => array

PHP
View

Questions about programming?Chat with your personal AI assistant