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]

 



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

[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