[FX.php List] How to get a string of valuse from a form
Steve Winter
steve at bluecrocodile.co.nz
Tue Aug 26 12:33:27 MDT 2008
Hi John,
One approach is to create an array on the submission side. In your form put
something like <input type=”checkbox” name=”fieldName[]” value=”.... “ />
(note the [] in the name field...
This will result in an array arriving at the php submission form, you can do
something like;
$fieldValue = ‘’;
foreach($fieldName as $value)
$fieldValue .= “$value\n”;
Hope this helps...
Cheers
Steve
_____
From: fx.php_list-bounces at mail.iviking.org
[mailto:fx.php_list-bounces at mail.iviking.org] On Behalf Of John Funk
Sent: Tuesday, 26 August 2008 6:53 p.m.
To: 'FX.php Discussion List'
Subject: [FX.php List] How to get a string of valuse from a form
I have a form that displays a list of check boxed items, some checked some
not data is from a child table. They are all the same text field “name”
because they are from the same field in the related table. In PHP, How do I
“collect” only the checked items so the next process can insert this list of
items to a single field in the parent table?
John Funk
No virus found in this incoming message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.6.9/1635 - Release Date: 26/08/2008
7:29 a.m.
No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.524 / Virus Database: 270.6.9/1635 - Release Date: 26/08/2008
7:29 a.m.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20080826/9cc29cc0/attachment-0001.html
More information about the FX.php_List
mailing list