i have an array of inputboxes on a page (like this):
<input name="myInputBox<?=$counter; ?>" ...
in the new page, i want to echo those values
i'm doing:
<? echo $myInputBox.$thiscounter; ?> //thiscounter is a new counter)
but all i'm echoing is 1, 2, 3 ( which is the val of $thiscounter)
if i do
<? echo $myInputBox1; ?>
that works fine (so the var name is correct)
i throught the dot (.) was to join things -
i've tried brackets too:
echo $myInputBox[".$thiscounter."];
etc
if anyone can help me out with the syntax i'd be very grateful
thanks all!
jg