Re: [SMARTY] HTML arrays
| From: | messju mohr | Date: | Mon, 16 Feb 2004 15:46:52 +0000 |
| Subject: | Re: [SMARTY] HTML arrays | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10960@lists.php.net to get a copy of this message | ||
On Mon, Feb 16, 2004 at 03:20:25PM +0000, Marcus Bointon wrote:
> I'm just having to deal with the issue of handling an arbitrary number of
> data rows in a page, each of which may have check boxes, pop-ups etc, all
> generated with Smarty. At the moment I'm cheating by having an "update"
> button for each row, but I'd really like to have a single update button for
> all the rows. This means of course that I need to send the entire data set
> back in some kind of array form (which HTML doesn't do, AFAIK), or come up
> with some consistent naming scheme to uniquely identify every property of
> every row. Then I also need to figure out how to deal with it at the
> receiving end in PHP - e.g. can I register/retrieve submitted fields using
> wildcards in their names?
>
> How do you deal with this? Is there a "Smarty way" of handling it?
If I understand you correctly, you want to pass arrays via your forms.
See here: http://php.net/manual/en/faq.html.php#faq.html.arrays
> Thanks,
>
> Marcus