% sql2="select name,ch,qymc,phone,fax,email from corporation where id="&session("id")&"" set rs2=conn.execute(sql2) if session("flag")<>1 then if not rs2.eof or isnull(rs2("qymc")) then response.redirect "upgrade.asp" response.end end if end if %>