Jump to content


Photo

Variables concatenate...help


  • Please log in to reply
1 reply to this topic

#1 archVille

archVille
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 18 June 2006 - 08:08 AM

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????

#2 jajtiii

jajtiii
  • Members
  • PipPipPip
  • Advanced Member
  • 43 posts

Posted 18 June 2006 - 10:01 AM

[!--quoteo(post=385256:date=Jun 18 2006, 04:08 AM:name=PMeres)--][div class=\'quotetop\']QUOTE(PMeres @ Jun 18 2006, 04:08 AM) View Post[/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" />';
}





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users