myForm.htm
<!DOCTYPE html > <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>表單設計</title> </head> <body> <form id="msgForm" name="msgForm" method="post" action="msgAct.php"> <label for="aName">姓名:</label> <input type="text" name="aName" id="aName" /> <br /> <label for="Email">信箱:</label> <input type="text" name="Email" id="Email" /><br /> <label>性別:</label> <input name="sex" type="radio" id="M" value="男" checked="checked" /> <label for="M">男</label> <input type="radio" name="sex" id="F" value="女" /> <label for="F">女</label> <br /><label>興趣:</label> <input name="Love[]" type="checkbox" id="Love1" value="運動" /> <label for="Love1">運動</label> <input name="Love[]" type="checkbox" id="Love2" value="歌唱" /> <label for="Love2">歌唱</label> <input name="Love[]" type="checkbox" id="Love3" value="閱讀" /> <label for="Love3">閱讀</label> <br /> <label for="blood">血型:</label> <select name="blood" id="blood"> <option>A</option> <option>B</option> <option>AB</option> <option selected="selected">0</option> </select> <br /> <label for="msg">留言:</label> <textarea name="msg" id="msg" cols="45" rows="5"></textarea> <br /> <input type="submit" name="button" id="button" value="送出" /> <input type="reset" name="button2" id="button2" value="重設" /> </form> </body> </html>
沒有留言:
張貼留言