paulman888888 Posted August 8, 2008 Share Posted August 8, 2008 This is properly got a easy answer. I would like to know how to add strings in a loop. For example <?php $i = 1; while(true) { if (!isset($_POST["white_move_".$i])){ $move = $i. '.' .$_POST["white_move_".$i]//post=e then the next time =gh $i++; }} ?> So that $move will get bigger and bigger and not replaced by the next go round the loop. Hope you understand Thankyou Paul Quote Link to comment Share on other sites More sharing options...
waynew Posted August 8, 2008 Share Posted August 8, 2008 $example = $example.$new_string; Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted August 8, 2008 Share Posted August 8, 2008 Or <?php $example .= $new_string; ?> Ken Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.