当前位置:有风信息港IT学院编程技术asp → 使用script调用cgi程序的方法

使用script调用cgi程序的方法

减小字体 增大字体 作者:有风IT学院  来源:有风信息港  发布时间:2008-1-13 9:22:05
  1.在调用页中加html代码如下:

  

  2.在cgi程序里需:   

  1.发一个html头: [不可少!]   

  print "Content-type:text/html\n\n";   

  2.print出script之document.write()动态写出你要的html代码,如下句

  print("document.write('
$downtime
');\n");