I have this php script:
<?php
$tmp = $_POST['N1'];
$tmp = $_POST['N2'];
$tmp = $_POST['N3'];
$tmp = $_POST['N4'];
?>
I want to use a for loop instead:
<?php
for ($i = 0; $i < 4; $i++) {
$tmp = $_POST['N$i'];
}
?>
How come this doesn't work?