我的代码是这样的,我想删除以下通知:
1. Notice: Undefined index: name
2. Notice: Undefined index: website
3. Notice: Undefined index: description
另外,这个代码在我刷新网页时自动添加数据如何摆脱?
<?php
{
// Instructions if $ _POST [ 'name'] exists
}
$wpdb->query("insert into ".PRO_TABLE_PREFIX."tutorial ( name, website, description )
values('{$_POST['name']}','{$_POST['website']}','{$_POST['description']}')");
?>