>  기사  >  php教程  >  收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 PHP

收藏 不显示删除回复显示所有回复显示星级回复显示得分回复 PHP

WBOY
WBOY원래의
2016-06-06 19:42:321235검색

head meta http-equiv ="Content-Type" content ="text/html; charset=utf-8" / title 无标题文档 / title script type ="text/javascript" function checkSubmit() { var kw = document.getElementById( ' kw ' ).value; if (kw.length 1 ) { alert ( ' 请

head>
meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
title>无标题文档title>
script type="text/javascript">
function checkSubmit() {
   
var kw = document.getElementById('kw').value;
   
if (kw.length 1) {
        alert(
'请输入!');
       
returnfalse;
    }
   
returntrue;
}
script>
head>

body>
div id="fm">
 
form name="free" method="get" action='news.php' onsubmit="return checkSubmit();">
 
input type="text" name=edit class="STYLE2" id="kw" maxlength="150">
 
span class="btn_wr">
 
input type="submit" class="btn" id="su"  value="检 索">  
 
span>
form>
div>
body>
html>

首先判断输入框edit的内容是否为空,若非空跳转到news.php页面,且把值传给news.php中的edit2。
以上代码该怎么写。本人是PHP初学,请大哥大姐指点。。。

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.