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

From: Date: Sat, 28 May 2011 13:11:07 +0000
Subject: Re: how to use echo checkboxes in php when i don't have access to $_POST
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-313210@lists.php.net to get a copy of this message
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 <nickparsa@gmail.com> wrote: > 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 SIMPLE code: > <?php > echo"<input type='Checkbox' name='negin' value='yes' > checked />"; > echo $_POST['negin']; > ?> > <html> > <head> > <body> > <form method="post"> > </form> > </body> > </head> > </html> > error is this: > Undefined index: negin in *D:\phpweb\negin2.php* on line *4* > * > * > *how can I correct this?* >

« previous php.general (#313210) next »