[FX.php List] Testing - anyone receiving posts?

Erik Andreas Cayré erik at cayre.dk
Sun Oct 29 01:14:57 MST 2006


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1856 bytes
Desc: not available
Url : http://www.iviking.org/pipermail/fx.php_list/attachments/20061029/aadd3af7/smime-0001.bin


More information about the FX.php_List mailing list