📄 guestbook.php
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>7999网址大全留言本</title><script language="JavaScript" type="text/javascript" src="i/checkform.js"></Script><link href="i/css.css" rel="stylesheet" type="text/css"></head><body><div id="main"><div id="submit"><?phpif (isset($_REQUEST['email']))//if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['name'] ; $message = $_REQUEST['message'] ; mail( "yongjin@verycd.com", "Subject: 7999用户留言", $message, "From: $email" ); echo "非常感谢您的留言!"; }else//if "email" is not filled out, display the form { echo "<form name='submitform' method='post' action='guestbook.php' onSubmit='return FrontPage_Form1_Validator(this)'><p><img src='i/i1.gif' /><img src='i/add.gif' /></p><br /><label for='user'>昵称:</label><input type='text' id=username name='name' value='' /><font color='#FF0000'>*</font><br /><label for='email'>Email:</label><input type='text' id=email name='email' value='' /><font color='#FF0000'>* (请填写邮箱,方便回复)</font><br /><label for='comment'>内容:</label><textarea id=content name='message'></textarea>*<br /><label for='comment'> </label><span>提交前请按Ctrl+C保存留言内容,以免程序出错而丢失!留言内容不能少于5个字符!</span><br /><input type='submit' id='sbutton' name='submit' value='提交留言' /></form>"; }?></div></div></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -