Re: how to use echo checkboxes in php when i don't have access to $_POST

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

 



lÃr, 28 05 2011 kl. 13:32 +0430, skrev Negin Nickparsa:
> because I echo the checkboxes like this:
> 
> if($num>0)
> {
> echo "<table border=2>";
> for($i=0;$i<$num;$i++)
> {
> $row=mysql_fetch_row($result);
> echo "<tr>";
> echo"<td><input type='Checkbox' name='p$i'  value='yes' unchecked /></td>";
> echo"<td>$row[0]</td>";
>  echo"</tr>";
> }//for
> echo"</table>";
> }//if
> 
> i can't use $_POST because it's not in html
> how can i insert my items that are checked into table?
Hey,

You are generating HTML output from PHP! Right?

Then why dont you have access to $_POST ???

/Lars


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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux