i have a script that goes like this
...
<form action=action.php method=post>
<?
foreach ($file as $line){
echo "<input type=checkbox name=reqs[] value=<? echo $line ?> > $line <br>";
}
?>
....
the action.php goes like this:
<form action=<? echo $PHP_SELF ?> method=post>
<textarea rows=20 cols=100 name=allReqs>
<?
while($x=each($reqs){
echo "$x[1] \n";
}
</textarea>
....
now thist displays all of the selected checkbox values from the first script in the textarea that's in the second script, however i keep geting a b>Warning</b>: Variable passed to each() is not an array or object in <b>req.php</b> on line <b>17</b><br>
message.
why is this? and how can i stop it?
Vic.