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
https://forums.phpfreaks.com/topic/264662-php-sticky-forms/
Share on other sites

Archived

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

×
×
  • 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.