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

相關文章
相關標籤/搜索