[FX.php List] Testing - anyone receiving posts?
Gjermund Gusland Thorsen
ggt667 at gmail.com
Sun Oct 29 04:11:59 MST 2006
$valueToPutInsideFileMaker = implode( "\n", $valuesFromCheckboxOnWeb );
ggt667
On 10/29/06, Erik Andreas Cayré <erik at cayre.dk> wrote:
>
> Den 28/10/2006 kl. 2.04 skrev Bob Patin:
>
> > I haven't gotten anything in over a day...
>
> Neither did I...
>
> > I posted a question about concatenating variables together so that
> > I could write
> >
> > line 1
> > line 2
> > line 3
> >
> > to a field in FileMaker so that it'd show checkboxes properly...
> > but I never saw my post or any others...
> >
> > Anybody getting this? If you have a quick answer for me, I'd
> > appreciate your help; if you would, CC it to bob at patin.com.
>
> This is my code in a POST form:
>
> $association['regions'] = explode('<br />', nl2br($association
> ['regionid']));
> for ($i = 1; $i <= 6; $i++) {
> print '<label>' . $i . '<input style="float: left;" type ="checkbox"
> name="regionid[]" value="' . $i . '"' . (in_array($i, $association
> ['regions']) ? ' checked' : '') . '></label><br>';
> }
>
> and my code for posting to FM:
>
> if(isset($_POST['regionid'])) {
> if(is_array($_POST['regionid'])) {
> $fx->AddDBParam('regionid', implode(chr(10), $_POST['regionid']));
> } else {
> $fx->AddDBParam('regionid', $_POST['regionid']);
> }
> }
>
> As I recall, the code above works as expected. At least I can't
> remember getting errors while testing it.
>
> Just ask if it isn't obvious...
>
>
> ---
> Erik Andreas Cayré
> Spangsbjerg Møllevej 169
> DK-6705 Esbjerg Ø
>
> Home Tel: +45 75150512
> Mobile: +45 40161183
>
> »If you can't explain it simply, you don't understand it well enough.«
> -- Albert Einstein
>
> »If you don't have time to do it right, when will you have time to do
> it over?«
> -- John Wooden, basketball coach
>
>
>
>
> _______________________________________________
> 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