[FX.php List] FMP Checkbox
Gjermund Gusland Thorsen
ggt667 at gmail.com
Thu Nov 1 03:48:42 MDT 2007
You have to put escaped characters such as \n and \t in double quotes.
FX.php SP2 will be out as soon as possible, I have not sent my stuff
to Chris yet, as package maintainer he will have to test it too. I
expect X-mas +/- 1 month. If time allows.
Gjermund
On 11/1/07, Roger Price <rp272 at cam.ac.uk> wrote:
> Thank you all for your various suggestions. Using '\n' rather than
> ''chr(10)' seems to have worked fine but only if I do the concatenation the
> 'tedious' way!
>
> Passing the checkbox values in an array seems very neat and works exactly as
> suggested. However when I implode the array with '\n' as the separator the
> resultant variable gives me:
>
> 'value1\nvalue1\nvalue3' which of course does not give the desired result
> in FMP.
>
> Why should this be - am I missing something?
>
> BTW Gjermund when do you expect the FX.php update that includes a checkbox
> feature to be released?
>
> kindest regards
>
> Roger
>
> ----- Original Message -----
> From: "Gjermund Gusland Thorsen" <ggt667 at gmail.com>
> To: "FX.php Discussion List" <fx.php_list at mail.iviking.org>
> Sent: Thursday, November 01, 2007 12:31 AM
> Subject: Re: [FX.php List] FMP Checkbox
>
>
> > Never mess with the array cowboys ;-) They Rock!
> >
> > arrays and foreach are really one of the most beautiful combinations
> > in php AFAIK.
> >
> > and heredoc to let your brains focus on anything but quotes ;-)
> >
> > On 11/1/07, Tim 'Webko' Booth <tim at nicheit.com.au> wrote:
> >> At 10:16 PM 31/10/2007, you wrote:
> >> >BTW did you ever consider using arrays?
> >> >
> >> ><input type=checkbox name="name[]" value="<<$recid>>"
> >>
> >> As a note - this method rocks compared to anything else I've tried.
> >>
> >> Concatenation for large checkbox sets is tedious, and you can still
> >> end up with nothing but a heap of returns - the above creates a
> >> lovely array to play with :-0
> >>
> >> Webko
> >>
> >>
> >> _______________________________________________
> >> 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
> >
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list