CGI编程

经过perl的cgi程序去进行一个web操做:html

一个简单的cgi例子:web

1.HTMLide

<html>

<body>
<center>
<form name="input" action="cgi-bin/1.cgi">
<input type="submit" value="提交"/>
</form>
</center>
</body>
</html>
 orm

2.1.cgihtm

#!/usr/bin/perl
print "Content-type: text/html\n\n";
print "<html><head><title>my first perl program</title></head>\n";
print "<body><h1>Hello world</h1></body></html>\n";input

相关文章
相关标签/搜索