defining an array in html template to be used by php
I have a form in my html template file which uses POST method.
In order to use this template I call this template's variables in a loop. So I need to define an array in my html template. my template form varaibles are defined like this: <form method="POST" action="gamble.php" name="form1"> <table> <!-- BEGIN input --> <tr> <td><b>{f_team}</b></td> <td><input type="text" size="4" name="first_team" value="{first_value}"></td> <td><input type="text" size="4" name="second_team" value="{second_value}" ></td> <td><b>{s_team}</b></td> <td><font color="red"><b>Deadline:{deadline}</b></td> </tr> <!-- END input --> <tr> <Td><input type="submit" value="insert"></td> </tr> </table> </form> I save {f_team} and {s_team} variables in an array when I assign them a new value in each loop. then I store this array in a $_SESSION["somearray"] which works fine. I did the same thing for {first_team} and {second_team} but it doesn't work. Is it possible to define an array in my template? if yes how can I get the this array values using post method? I use $first_value = mysqlclean($_POST, "first_team", 5, $connection); $second_value = mysqlclean($_POST, "second_team", 5, $connection); to get the value when my array's length is only 1. |
I use HTML_Template_ITX pear in order to make my template
|
Hello,
I am designing my first serious web database application using php and mysql. I have the following problem: I have made a form inside a loop using POST method: PHP Code:
PHP Code:
I would br glad if you help me. |
All times are GMT -5. The time now is 05:37 AM. |