php - retrieve values from an array -
Hello Coder I have There is a database in the CCV format. To recover data, I use the csv parser from where I got the results in the array ([fieldset_name] => personal details [field_name] = & gt; applicant_name [field_label] = & gt; your name [field_type] = & Gt; Text [css_classes] = & gt;
[middleline] => 4 [maximal] => 10 [default_value] = & gt; [help_text] = & Gt;) Array ([field = 1]] = & gt; personal details [field_name] = & gt; applicant_pad [field_label] = & gt; [[field_type] = & gt; text I [css_classes] = & gt; Required [minlength] => 4 [maxlength] => 10 [default_value] => [help_text] = & gt;) I now have an html form of this array
& lt ;? To create a php foreach ($ form_field $ key = & gt; $ v1) {$ fieldset_name = $ v1} ['fieldset_name']; $ Field_name = $ v1 ['field_name']; $ Field_labil = $ v1 ['field_label']; $ Field_type = $ v1 ['field_type']; $ Css_classes = $ v1 ['css_classes']; $ Minlength = $ v1 ['Meanline']; $ Max length = $ v1 ['max length']; $ Default_value = $ v1 ['default_value']; & Lt; For label "& lt;? Php echo $ field_name ;; & gt; & Gt; & Lt; / Labels & gt; & Lt ;? Php echo $ field_label; ? & Gt; & Lt; Input type = "& lt ;? php echo $ field_type ;? & gt;" Id = "& lt ;? php echo $ css_classes ;? & gt;" /> & Lt ;? Php}? & Gt; From where "applicant_name" & gt; & Lt; / Label & gt; Your name & lt;
for input type = "text" & lt; The result is labeled as "Id =" Required "/> & lt;" City "& gt; & lt; / Labels & gt; City & lt; Input Type =" Articles "id =" Required "/> Now I want to set both the values. For the first time I
Comments
Post a Comment