[FX.php List] Multiple records Redux

Jonathan Schwartz jonathan at exit445.com
Wed May 16 10:51:33 MDT 2007


Man you guys are great!

Thanks


>Ever tried making input field with same name with a bracket at the end?
>
>It makes a array on the resulting page :-)
>
>name="selection[]" and value =(recid)
>
>ggt667
>
>On 5/16/07, Jonathan Schwartz <jonathan at exit445.com> wrote:
>>Hi Folks,
>>
>>Recently, I posted a question about retrieving multiple records from
>>a form, as in checkbox for each of the records listed from an fx.php
>>query.
>>
>>At the time, I guess it was dumb luck that I achieved the desired
>>results the first time, because now I'm not confident of the
>>mechanics when I try to retrieve *two* values from each record in the
>>form.
>>
>>It seems that the $_POST will only produce multiple records if each
>>of the  <input "name" > fields is unique.  In my first attempt, I
>>just happened to make the name field the recid, so this worked.
>>Subsequently, when I tried the more conventional approach of using
>>name="RECORDID" and value =(recid), the $_POST only delivers a single
>>record.  I deduced that the "name" value must be unique.
>>
>>Moving forward, I am now trying to add another value to the $_POST
>>array.  This will not be unique (one of two values) , and will
>>"break" the $_POST scheme I desire.
>>
>>The only thing that I can think to do is to concatenate the recid
>>with the new value, ensuring a unique value. The value would be
>>passed as a hidden value....and I'm not even sure that that will work.
>>
>>Am I on the right track?
>>
>>Thx
>>
>>Jonathan
>>
>>
>>
>>
>>--
>>Jonathan Schwartz
>>Exit 445 Group
>>jonathan at exit445.com
>>http://www.exit445.com
>>415-381-1852
>>FileMaker 8 Certified Developer
>>_______________________________________________
>>FX.php_List mailing list
>>FX.php_List at mail.iviking.org
>>http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>_______________________________________________
>FX.php_List mailing list
>FX.php_List at mail.iviking.org
>http://www.iviking.org/mailman/listinfo/fx.php_list


-- 
Jonathan Schwartz
Exit 445 Group
jonathan at exit445.com
http://www.exit445.com
415-381-1852
FileMaker 8 Certified Developer


More information about the FX.php_List mailing list