Jump to content

Recommended Posts

I need some formula that will take this set of radio button and increment them up.

 

The name should start at $i=1; and end at $max=31; $values=1 to 4;

 

The only only real value that needs to change is "value"

 

I know there is an easy script for this I just can't get it put together and I'm embarrassed to show my work thus far.

 

My brain hurts trying to figure this.

 

In theary I believe since the value is simply 1 to 4 I could set a variable (minimum maximum for that).

 

The name is 1 - 32 I could set a variable (minimum maximum for that)

 

The loop Help me...

 

<input type="radio" name='1' value=1> 1 <input type="radio" name='1' value=2> 2 <input type="radio" name='1' value=3> 3 <input type="radio" name='1' value=3> 3 <input type="radio" name='1' value=4> 4

<input type="radio" name='2' value=1> 1 <input type="radio" name='2' value=2> 2 <input type="radio" name='2' value=3> 3 <input type="radio" name='2' value=3> 3 <input type="radio" name='2' value=4> 4

This just repeats up to 32 inside of a table

 

Could someone get me started.

 

I'll be searching until then.

 

Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/125940-solved-max-and-i/
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.