Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-06 19:42:32
Original
1235 people have browsed it

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初学,请大哥大姐指点。。。

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!