WordPress Notice “Undefined Index”

I am getting following notice in WordPress

Notice: Undefined index: _wpnonce in /var/www/vhosts/abc.biz/php/func.php on line 338

Any solution? Thanks for help

Answers


I found the solution, have to use isset() to check _wpnonce value, before comparing it.

if ( isset($_POST['_wpnonce']) && $_POST['_wpnonce'] = '123456789' ) {}

Thanks.


Need Your Help

writing to a file (?isolated storage wp7)

c# windows-phone-7

this code for writing the value of text box to the file but it doesn't create a file even when i used an exist file it's still empty!!

Where can I find good tutorials on XSL-FO (Formating/ed Objects), the stuff one feeds to fop and get PDF's?

xml pdf xsl-fo fop

On a company that I've worked, me and my colleagues, implemented a tailored document distribution system on top of XSL-FO.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.