perhaps $[connit.$i] would to it?

----- Original Message -----
From: "Larry Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 18, 2002 20:24
Subject: [PHP] looking for newbie help in solving logic problem


> The following is an over simplified description.  With additional items
not
> included everything here works except for the last string. (hence the
> problem)
>
> _
> #page 1
> #pull info from several similar sections from a file stored in $array
> --------------------------------------------------------------------------
--
> -----
> $top = count($array);  file://number of times needed to read info from
file.
> for ($i=0; $i<$top; $i++)
> {
>     echo '<input type="text" size=3 name="connlt', "$i", '" value=";,
> "$InfoFromExistingFile", '">';
>     echo '<input type="hidden" name="conncycle" value="', $numbconn",
'">';
> }
>
>
>
> #page 2
> #take variables $connlt0, $connlt1, and $connlt2 and place them in a file
> for ($i=0;$i<$limit;$i++)
> {
>     fwrite($fw, "bla bla-$connlt[$i] bla bla bla");
> }
>
> --------------------------------------------------------------------------
--
> ----
>
> The string I'm attempting to send to the file should be the contents of
> $connlt0 on the first pass $connlt1 on the second, and so on.  What I get
as
> you experienced progammers probably already recognize is $connlt which has
a
> value of "0" followed by [0] on the first pass and [1] on the second etc.
I
> tried concatination "$connlt"."[$i]" which resolves to "0" and
> "$"."connlt"."[$i]" which sends the actual string bla bla-$connlt1 bla bla
> bla".  Can someone help show how to get the string after concatenation to
> take on the value carried over from the first page?  I've verified using
> echo the contents of $connlt0 to be in existence.
>
> Thank you in advance,
>
> Larry
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to