Re: Problems by transfer of arrayed formfield
| From: | Ruprecht Helms | Date: | Mon, 13 Feb 2006 09:54:59 +0000 |
| Subject: | Re: Problems by transfer of arrayed formfield | ||
| References: | 1 2 3 4 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-41236@lists.php.net to get a copy of this message | ||
Hi,
in the meentime I tried to look why the foreach-loops puts out an error.
I change the script with the checkboxes in this to look that the array is filled correctly.
<html>
<head>
<title>Test</title>
</head>
<body>
<form action="form_test2.php" enctype="multipart/form-data">
gesamt löchen
<?
for ($i=0;$i<=5;$i++)
{
//echo "<input type='checkbox' name=\"ids[]\" value=".$i.">";
$ids[] = $i;
//$user_id = $aus_konto["kontoinp"];
//echo "<input type='checkbox' name='aus_id[]' value='$user_id'>";
}
?>
<input type="submit" value="ausführen">
<input type="reset" value="abbrechen">
</form>
I still have problems with the foreach-loop
Here the actually error:
*Warning*: Invalid argument supplied for foreach() in */www/htdocs/<scriptdirectory>/form_test2.php* on line *11
Regards,
Ruprecht Helms
*