// 这里是为 更新数据时 提供数组,发表时由于没有数据所以必须为空 if($route == 'thread' && $action == 'create') { $pa = ''; $pb = ''; $pc = ''; $pd = ''; $pe = ''; $pf = ''; $pg = ''; $ph = ''; $pi = ''; $pj = ''; } elseif($route == 'post' && $action == 'update') { $pa = $post['pa']; $pb = $post['pb']; $pc = $post['pc']; $pd = $post['pd']; $pe = $post['pe']; $pf = $post['pf']; $pg = $post['pg']; $ph = $post['ph']; $pi = $post['pi']; $pj = $post['pj']; } elseif($route == 'post' && $action == 'create') { $pa = ''; $pb = ''; $pc = ''; $pd = ''; $pe = ''; $pf = ''; $pg = ''; $ph = ''; $pi = ''; $pj = ''; }