Fatal error: Call to a member function escape() on a non-object in .....on line 10
- by danyo
i am making a simple javascript login form for wordpress. i have the form submitting to the following bit of php to handle the login:
<?php
get_header();
global $user_ID;
if (!$user_ID) {
if($_POST){
//We shall SQL escape all inputs
$username = $wpdb->escape($_REQUEST['username']);
$password =…