Multiple field Arrays

Multiple field Arrays

am 04.11.2007 22:58:54 von Kevin Davis

Hello,

I have an quick question.

I have the following form:



for (i=0; i< linecount;i++)
{






}


Then I try to split up the data:
foreach ($_POST['name'] as $namef)
{
echo $namef."
;

}

Here is the problem. The multiple fields seem not to be splitting up
because the output seems to coming out in a single blob.

What I would like to do is split up the array based upon the field
entry so I can insert the info into the database.

Thank you.

Kevin

Re: Multiple field Arrays

am 05.11.2007 00:21:04 von Jerry Stuckle

Kevin Davis wrote:
> Hello,
>
> I have an quick question.
>
> I have the following form:
>
>


>
> > for (i=0; i< linecount;i++)
> {
>
>
>
>
>
>
> }
>

>
> Then I try to split up the data:
> foreach ($_POST['name'] as $namef)
> {
> echo $namef."
;
>
> }
>
> Here is the problem. The multiple fields seem not to be splitting up
> because the output seems to coming out in a single blob.
>
> What I would like to do is split up the array based upon the field
> entry so I can insert the info into the database.
>
> Thank you.
>
> Kevin
>
>

foreach ($_POST['name'] as $namef)
{
echo $namef."
";
}

BTW - if you're using html, that should be
instead of
.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Multiple field Arrays

am 05.11.2007 00:22:57 von Jerry Stuckle

Kevin Davis wrote:
> Hello,
>
> I have an quick question.
>
> I have the following form:
>
>


>
> > for (i=0; i< linecount;i++)
> {
>
>
>
>
>
>
> }
>

>
> Then I try to split up the data:
> foreach ($_POST['name'] as $namef)
> {
> echo $namef."
;
>
> }
>
> Here is the problem. The multiple fields seem not to be splitting up
> because the output seems to coming out in a single blob.
>
> What I would like to do is split up the array based upon the field
> entry so I can insert the info into the database.
>
> Thank you.
>
> Kevin
>
>

Oops, pressed send too quick...

Also, your fields should be:



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Multiple field Arrays

am 05.11.2007 03:53:13 von Lars Eighner

In our last episode,
<1194213534.765875.294610@d55g2000hsg.googlegroups.com>, the lovely and
talented Kevin Davis broadcast on comp.lang.php:

> Hello,

> I have an quick question.

It is really an HTML question. Look up the input element in
your copy of the spec.

> I have the following form:

>


>
> > for (i=0; i< linecount;i++)
> {
>
>
>
>
>
>
> }
>


> Then I try to split up the data:
> foreach ($_POST['name'] as $namef)
> {
> echo $namef."
;

> }

> Here is the problem. The multiple fields seem not to be splitting up
> because the output seems to coming out in a single blob.

> What I would like to do is split up the array based upon the field
> entry so I can insert the info into the database.

> Thank you.

> Kevin

--
Lars Eighner
Countdown: 442 days to go.
What do you do when you're debranded?