Jump to content

PHP Sticky forms


lukep11a

Recommended Posts

Hi, I am trying to get a specific part of my form to remember the selections by the user if the form fails the validation process. As it stands when the form is processed, $team_id is passed as an array as the user is required to make 11 selections.  I think the reason why it is failing to remember the selections is because it is an array. I am not sure this is even possible but if anyone has any ideas I would be very grateful, the code I have currently is below:

 

<tr>
                <td>'. $row['team_name']. '</td>
                <td>?'. $row['value']. 'm</td>
                <td><input type="radio" name="team_id['. $row['selection_group']. ']" id="'. $row['value']. '" value="'. $row['team_id']. '"' ?><?php if ($_POST['team_id[$group]'] == '$team_id') echo ' checked="checked" ' ?><?php echo '/></td>
              	</tr>

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.