(怪事,刚才贴的不见了。)
试试:
program CgiTest1;
{$APPTYPE CONSOLE}
uses SysUtils;
var sss: integer;
begin
sss:=383462;
writeln('<HTML><HEAD>');
writeln('<TITLE>CGI Text</TITLE>');
writeln('</HEAD><BODY>');
writeln('<B>查询结果为:</B>'+IntToStr(sss));
writeln('</BODY></HTML>');
// Insert user code here
end.
var sss: integer;
begin
sss:=383462;
writeln('<HTML><HEAD>');
writeln('<TITLE>CGI Text</TITLE>');
writeln('</HEAD><BODY>');
writeln('<B>查询结果为:</B>'+IntToStr(sss));
writeln('</BODY></HTML>');
// Insert user code here
end.}
最后试一次:
<!--
program CgiTest1;
{$APPTYPE CONSOLE}
uses SysUtils;
var sss: integer;
begin
sss:=383462;
writeln('<HTML><HEAD>');
writeln('<TITLE>CGI Text</TITLE>');
writeln('</HEAD><BODY>');
writeln('<B>查询结果为:</B>'+IntToStr(sss));
writeln('</BODY></HTML>');
// Insert user code here
end. ...-->
var sss: integer;
begin
sss:=383462;
writeln('&lt;HTML>&lt;HEAD>');
writeln('&lt;TITLE>CGI Text&lt;/TITLE>');
writeln('&lt;/HEAD>&lt;BODY>');
writeln('&lt;B>查询结果为:&lt;/B>'+IntToStr(sss));
writeln('&lt;/BODY>&lt;/HTML>');
// Insert user code here
end.}