ninedoors Posted October 8, 2008 Share Posted October 8, 2008 Can I use $_POST in a form to pass a php array? Like: <?php echo '<tr> <td align="left" class="geor13b"> </td> <td align="left" class="geor13b"><input name="jersey" type="hidden" value="'.$context['jersey'].'" /></td> <td align="left"><input name="div" type="hidden" value="'.$context['game']['div'].'" /></td> <td align="left"><input name="hteam" type="hidden" value="'.$context['game']['hteam'].'" /></td> <td align="left"><input name="num" type="hidden" value="'.$context['game']['num'].'" /></td> </tr>'; ?> Where $context['jersey'] is an array constructed earlier in the script. Link to comment https://forums.phpfreaks.com/topic/127545-passing-an-array/ Share on other sites More sharing options...
Orio Posted October 8, 2008 Share Posted October 8, 2008 Use serialize() and unserialize(). Orio. Link to comment https://forums.phpfreaks.com/topic/127545-passing-an-array/#findComment-659887 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.