这是设置:
<form method="post" action="">
<input type="hidden" name="delete_app_id" id="delete_app_id" value=\'<?php
echo $adoptee->app_id; ?>\' />
<input type="submit" name="delete" value="delete" />
</form>
<?php
if ( isset( $_POST[\'delete\'] ) ) {
$delete_id=$_POST[\'delete_app_id\'];
$adoptees_delete=$wpdb->query( "DELETE
FROM $wpdb->rc_vol_adopt_apps
WHERE app_id =\'$delete_id\'" );
if ( $adoptees_delete ) {
echo \'Record Deleted\';
} else{
echo \'Have a ham sandwich - cause this FAILED\';
}
}
它不会跑的!它正在收集
delete_app_id
以及
delete
从提交后开始,但之后什么都没有发生。好像看不到
if isset
陈述我错过了什么?