Re: Seeking strategy/algorithm for maintaining order of records
| From: | Jim Giner | Date: | Sun, 16 Oct 2011 19:26:29 +0000 |
| Subject: | Re: Seeking strategy/algorithm for maintaining order of records | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315324@lists.php.net to get a copy of this message | ||
"tamouse mailing lists" <tamouse.lists@gmail.com> wrote in message
news:CAHUC_t8iCx4Y4mCA05rrgZOPv4ZE7hwSndAiYJJmDVbambvE1Q@mail.gmail.com...
In Sat, Oct 15, 2011 at 7:57 PM, Stephen <stephen-d@rogers.com> wrote:
\<label for="category_one">Category One</label>
<input type="text" name="category_one" value="(current sort order for
category one)" id="category_one" />
I would capture the input fields by using an array name ("category[]")
instead of specific names (ie, "category_one". That way you don't have to
modify your input procesing if/when you add a new category.