Forum Moderators: coopster
echo $_POST['id'];
for ($i=0; $i< $_POST['id']; $i++)
...
But is it a good idea to store POST/GET data to a variable first? For example:
$id=$_POST['id'];
echo $id;
for ($i=0; $i< $id; $i++)
?
$variable = (isset($_POST['variable'])) ? $_POST['variable'] : '';
Either way it's not enough CPU time to make a noticeable difference.
Remember also that the $_POST array is automatically global.