Problems by transfer of arrayed formfield

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi I have to scripts that should transfer values of a checkbox into another script that put them out. You see that the value of the checkbox is stored in a array-variable. By putting out the value of
the arrayvariable there is no output. What can be wrong.

Enclosed the two scripts.

Regards,
Ruprecht
<html>
<head>
<title>Test</title>
</head>
<body>
<form action="form_test2.php">
gesamt l&ouml;chen &nbsp;&nbsp;
<?
for ($i=0;$i<=5;$i++)
{
echo "<input type=checkbox name='aus_id[$i]' value=$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>
</html>
<html>
<head>
<title>Test</title>
</head>
<body>

<?
for ($i=0;$i<=5;$i++)
{
	echo $aus_id[i];
}
//$user_id = $aus_konto["kontoinp"];
//echo "<input type='checkbox' name='aus_id[]' value='$user_id'>";
?>
</form>
</html>

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux