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@xxxxxxxxx> 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?* >