PHP开发实例大全(提高卷) 中文完整pdf扫描版[244MB]
<
fieldset
>
<
legend
>正则表单验证测试</
legend
>
<
form
action
=
""
method
=
"post"
target
=
"_self"
onSubmit
=
"return checkform();"
>
<
input
name
=
""
id
=
"telephone"
type
=
"text"
msg
=
""
/>
<
input
name
=
""
type
=
"submit"
class
=
"button"
value
=
"检查电话号码"
/>
</
form
>
</
fieldset
>
<script>
/* 正则检查表单案例 */
function
checkform(){
$element = document.getElementById(
"telephone"
-->
转载请注明:谷谷点程序 » dede php日常正则表单验证