archVille Posted June 18, 2006 Share Posted June 18, 2006 I want to pass a variable from a form :"<input name='mean".($i+1)."' type='text' size='2' maxlength='2'/>";to another php page so that to take $mean1 , $mean2 , $mean3 ...How can I concatenate the meanx with the i to have these variables above???? Link to comment https://forums.phpfreaks.com/topic/12289-variables-concatenatehelp/ Share on other sites More sharing options...
jajtiii Posted June 18, 2006 Share Posted June 18, 2006 [!--quoteo(post=385256:date=Jun 18 2006, 04:08 AM:name=PMeres)--][div class=\'quotetop\']QUOTE(PMeres @ Jun 18 2006, 04:08 AM) [snapback]385256[/snapback][/div][div class=\'quotemain\'][!--quotec--]"<input name='mean".($i+1)."' type='text' size='2' maxlength='2'/>";[/quote]You pretty much have it up there. for($x=1; $x<11; $x++) { echo '<input name = "mean'.$x.'" type = "text" size = "2" maxlength = "2" />';} Link to comment https://forums.phpfreaks.com/topic/12289-variables-concatenatehelp/#findComment-46948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.