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

2011-05-28 Thread Lars Nielsen
lør, 28 05 2011 kl. 13:32 +0430, skrev Negin Nickparsa: because I echo the checkboxes like this: if($num0) { echo table border=2; for($i=0;$i$num;$i++) { $row=mysql_fetch_row($result); echo tr; echotdinput type='Checkbox' name='p$i' value='yes' unchecked //td; echotd$row[0]/td;

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

2011-05-28 Thread Negin Nickparsa
because when the name is in echo it can't access to $_POST 4 example $_POST['p$i'] it tells me undefined variable p$i when in html we write it in form because it has post method it can set $_POST but here in php i just echo it and i can't access it maybe i am wrong but how can i correct it?

RE: [PHP] how to use echo checkboxes in php when i don't have access to $_POST

2011-05-28 Thread Jasper Mulder
Date: Sat, 28 May 2011 16:39:13 +0430 From: nickpa...@gmail.com To: l...@mit-web.dk CC: php-general@lists.php.net Subject: Re: [PHP] how to use echo checkboxes in php when i don't have access to $_POST because when the name is in echo it can't

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

2011-05-28 Thread Negin Nickparsa
I'm sorry that I disturbed you and the List,I tried hard to mind my punctuations but my English has weaknesses you can understand from my posts,one time I apologized.. No my problem is not with these punctuations i know them I said for example,I mean in general suppose that i have this

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

2011-05-28 Thread Igor Konforti
It means that array $_POST does not have a key called negin. Simple If statement before line 4 would fix this. And I agree with @Jasper Mulder. Perhaps you should try stackoverflow.comfor this kind of questions Regards On Sat, May 28, 2011 at 16:03, Negin Nickparsa nickpa...@gmail.com

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

2011-05-28 Thread Tim Streater
On 28 May 2011 at 14:11, Igor Konforti php@confiq.org wrote: It means that array $_POST does not have a key called negin. Simple If statement before line 4 would fix this. On Sat, May 28, 2011 at 16:03, Negin Nickparsa nickpa...@gmail.com wrote: suppose that i have this SIMPLE code:

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

2011-05-28 Thread Negin Nickparsa
Yes,you are right I visited the http://stackoverflow.com/users/218196/felix-kling and i found my problem and solved it