Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_php thread: SV: $_POST and Arrays


Message #1 by "Datatal AB - Gauffin, Jonas" <Jonas@d...> on Wed, 25 Sep 2002 14:17:25 +0200
>
>
>PHP doesn't pars vars inside '', this should work:
>$status = $_POST["formData1[$value->student_id]"];
>
>But I would use
>$status = $_POST["formData1[".$value->student_id."]"];
>
And these two do not work.

$status = $_POST['formData1[727]'];
$status = $_POST["formData1[727]"];

A single variable like this works.  $_POST['roomNumber']


  Return to Index