Jump to content

Archived

This topic is now archived and is closed to further replies.

archVille

Variables concatenate...help

Recommended Posts

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

Share this post


Link to post
Share on other sites
[!--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" />';
}

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.