Jump to content

Passing an array


ninedoors

Recommended Posts

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

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.