Categories > TinyButStrong general >

multidimension array problem

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Adam Horvath
Date: 2006-04-27
Time: 14:17

multidimension array problem

Hi!

I have a php array with form properties:

$f = array();
f["TIPUS_ROV"] = array(
    "title" => "Tipus rovidites",
    "type" => "text",
    "size" => 10,
    "maxlength" => 10
);
$f["TIPUS_NEV"] = array(
    "title" => "Tipus nev",
    "type" => "text",
    "size" => 30,
    "maxlength" => 30
);

And I can not make this html form, (in the {} signs are the php array keys and elements):

<form action="sdfsdf.php" method="post">
<table>
  <tr>
    <td>{Tipus rovidites}</td>
    <td><input type="{text}" name="{TIPUS_ROV}" size="{10}" maxlength="{10}"></td>
  </tr>
  <tr>
    <td>{Tipus nev}</td>
    <td><input type="{text}" name="{TIPUS_NEV}" size="{30}" maxlength="{30}"></td>
  </tr>
</table>
</form>

Is it possible? I tried a lot with sub-block, but without success. :(

Thanks a lot
Adam