?? guestbook.php
字號(hào):
<!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網(wǎng)址大全留言本</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'>* (請(qǐng)?zhí)顚?xiě)郵箱,方便回復(fù))</font><br /><label for='comment'>內(nèi)容:</label><textarea id=content name='message'></textarea>*<br /><label for='comment'> </label><span>提交前請(qǐng)按Ctrl+C保存留言內(nèi)容,以免程序出錯(cuò)而丟失!留言內(nèi)容不能少于5個(gè)字符!</span><br /><input type='submit' id='sbutton' name='submit' value='提交留言' /></form>"; }?></div></div></body></html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -