Jump to content

Variables concatenate...help


archVille

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????
Link to comment
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" />';
}
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.