是不是在网页中,若是可以用表单提交的方式传给下个页面呀

解决方案 »

  1.   

    这个问题不好解决,同意楼上的,
    或者避免出现页面转换,比如弹个新窗口,
      

  2.   

    问题解决了以下是代码
    create or replace procedure sample4(auth_birthdate in varchar2 default null)
    is
    cursor auths_cur is
    select author_code,name,sex,birthdate,postcode,salary from
       auths where to_char(birthdate,'MON')=auth_birthdate;
    c_code varchar2(10) default null;
    a varchar2(10) default null;
    begin
      htp.PRINT('<html><head>');
      htp.TITLE('根据条件进行查询');
      htp.PRINT('</head><body>');
      htp.PRINT('<body background="e:\text\psp\BACKGRND.GIF" text="#000088"
        link="#bb0000" vlink="#bb0000">');
      htp.IMG('e:\text\psp\PAINT.GIF');
      htp.p('=='||auth_birthdate||'==');
      htp.TABLEOPEN('border');
      htp.tablerowopen;
      htp.tableheader('author_code');
      htp.tableheader('name');
      htp.tableheader('sex');
      htp.tableheader('birthdate');
      htp.tableheader('postcode');
      htp.tableheader('salary');
      htp.TABLErowCLOSE;
      for cur in auths_cur loop
      htp.tablerowopen;
      htp.tabledata(cur.author_code);
      htp.tabledata(cur.name);
      htp.tabledata(cur.sex);
      htp.tabledata(cur.birthdate);
      htp.tabledata(cur.postcode);
      htp.tabledata(cur.salary);
      htp.tablerowclose;
      end loop;
      htp.tableclose;
    htp.LINE;
      htp.PARA;
      htp.P('本例中查询某月内出生的作者信息<br>并将结果以<b>TABLE</b>格式返回');
      htp.PARA;
      htp.P('请先选择某个月份,然后点取"提交"按钮查询');
      htp.P('<h4>请选择某个月份:</h4>');
      htp.FORMOPEN('http://comeback/pls/dcw/sample4');
      htp.FORMSELECTOPEN('auth_birthdate');
      c_code :=auth_birthdate;
       for i in 1..12 loop
      a:=i || '月';
      if a=c_code then
      htp.formselectoption( a,'a','value="a"');
      else
       
     htp.formselectoption( a);
     end if;
       end loop;
       htp.FORMSELECTCLOSE;
      htp.FORMSUBMIT(cvalue=>'提交');
      htp.FORMRESET(cvalue=>'重置');
      htp.LINE;
      htp.address('(c)2002大连COMEBACK数据工程有限公司');
      htp.P('</body>');
      htp.P('</html>');
    end;