用html做的简易留言簿界面

用html做的简易留言簿界面,第1张

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title></title>

</head>

<body>

<h1 align="center" style="color: red">用户留言簿</h1>

<hr color="red" />

<form action="baidu.html" method="post">

<table border="1" cellspacing="0" bordercolor="black" align="center" width="700px" height="300px" style="color: blue">

<tr>

<td width="100" height="50">用 户 名:</td>

<td><input type="text" name="name" /></td>

<td>密 码:</td>

<td><input type="password" name="pwd" /></td>

</tr>

<tr>

<td width="100" height="50">电子信箱:</td>

<td><input type="text" name="email" /></td>

<td>民 族:</td>

<td>

<select name="名族">

<option value="汉族" selected="selected">汉族</option>

<option value="少数名族">少数民族</option>

</select>

</td>

</tr>

<tr>

<td width="100" height="50">性 别:</td>

<td><input type="text" name="sex" />

<input type="radio" name="sex" value="男" checked="checked" />

<input type="radio" name="sex" value="女" />

</td>

<td>爱 好</td>

<td>

<input type="checkbox" name="lanqiu" value="aihao" />篮球

<input type="checkbox" name="zuqiu" value="aihao" />足球

<input type="checkbox" name="paiqiu" value="aihao" />排球

<input type="checkbox" name="qita" value="aihao" />其它

</td>

</tr>

<tr>

<td width="100" height="100">留 言:</td>

<td colspan="4">

<textarea name="liuyan" rows="5" cols="50">请多多指教</textarea>

</td>

</tr>

<tr>

<td height="50" colspan="5" align="center">

<input type="submit" value="确定" />

<input type="reset" value="重写" />

</td>

</tr>

</table>

</form>

</body>

</html>

如果只是html的静态页面代码如下

<table border=1>

<caption>留言薄</caption>

<tr>

<td>姓名:</td>

<td><input type='text' /></td>

</tr>

<tr>

<td>电话:</td>

<td><input type='text' /></td>

</tr>

<tr>

<td>Email地址:</td>

<td><input type='text' /></td>

</tr>

<tr>

<td>留言:</td>

<td><textarea rows="10" cols="30" ></textarea></td>

</tr>

<tr><td colspan="2" align='center'><input type='button' value='提交' /> <input type='button' value='清除' /></td></tr>

</table>

在自己的主页上放置留言簿

作为Webmaster,加入留言簿功能有利于加强信息交流。我们找到一个免费程序,使用效果不错,现介绍给大家。我们的服务器平台是Windows NT Server 4.0 中文版。

一、首先到下述地址去下载CGI-Guestbook V1.33 (english version)文件。文件名为:CGI-Guestbook.english.zip。

http://www.arcane.eu.org/Tools/cgi-guestbook—english.html

二、文件解压以后得到下述文件:

cgi-guestbook.exe,cgi-guestbook.ini,book.html,form.html,readme.txt

三、将cgi-guestbook.exe和cgi-guestbook.ini拷贝到WEB服务器的cgi-bin目录

将book.html和form.html拷贝到留言簿目录。我们的目录为 C:\InetPub\wwwroot\gbk\。

四、在服务器上进入“开始”——“Microsof Internet Server(公用)”——“Internet服务管理器”,在WWW服务属性中选“目录”,如果其中有cgi-bin目录,检查其属性,设为“可执行”。如果没有则应添加此目录。

五、如果是NTFS文件格式,将book.html文件设为可读写访问。如果是FAT文件格式,没有这项设置。

六、编辑cgi-guestbook.ini文件,文件中有详细说明。

七、对book.html和form.html进行润色(比如加入背景、简单汉化),注意对表单中的尖括号内的内容改写时要小心。

八、修改主页,链接到form.html(进行留言)和book.html(留言内容)。

我们在使用中碰到一个问题,老是说留言簿忙,英文信息是:

an error has occured

Guestbook is currently busy

The guestbook is currently busy processing the data of someone else. Please try it again in several seconds.

这时只要将cgi-bin目录下名为locked的文件删除掉即可。


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/7210956.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-03
下一篇 2023-04-03

发表评论

登录后才能评论

评论列表(0条)

保存