note 54715 added to faq.html
| From: | fib at affordit dot fr | Date: | Wed, 13 Jul 2005 14:26:42 +0000 |
| Subject: | note 54715 added to faq.html | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91897@lists.php.net to get a copy of this message | ||
I was working on a small interface for a client and he wanted a template to be generated
dynamically. The issue came up when I had to retrieve the values for an array of text variables. I
couldn't find any tutorial to help me out so after a few investigations this is how I made it
work:
<?php
$line_class=array();
$line_item=array();
for ($i=$rows_number;$i>0;$i--)
{
$line_class[$i]=$_POST['line_class'.$i.''];
$line_item[$i]=$_POST['line_item'.$i.''];
}
?>
Hope this helps someone ... at least they will do the job sooner than I did :D.
----
Manual Page -- http://www.php.net/manual/en/faq.html.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54715
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54715&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54715&report=yes
Search -- http://master.php.net/manage/user-notes.php