How can i convert the following code as my register_globals turned off, i cannot get the array values now :-(
$j=0; for ($i=0; $i < 5; $i++) { if (isset ($_POST['update'])) { $result[$j] = $update[$i]; $j = $j+1; } }
You just need 1 line at the beginning:
if (isset($_POST['update'])) $update = $_POST['update'];
edit: better yet:
$j=0; for ($i=0; $i < 5; $i++) { if (isset ($_POST['update'])){ $result[$j] = $_POST['update'][$i]; $j = $j+1; } }