Re: how to use echo checkboxes in php when i don't have access to $_POST
| From: | Lars Nielsen | Date: | Sat, 28 May 2011 11:33:31 +0000 |
| Subject: | Re: how to use echo checkboxes in php when i don't have access to $_POST | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-313203@lists.php.net to get a copy of this message | ||
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