Home >Backend Development >PHP Tutorial > 基础php input解决方法

基础php input解决方法

WBOY
WBOYOriginal
2016-06-13 13:28:39949browse

基础php input
1.htm页面

查 询

1.php页面

$find = $_G['gp_find'];
$tt = $find;

sql查询语句.....

请问如何能实现客户在input输入,然后点击查询,就直接跳转到 ( 123.php?f=客户输入的内容 )这样的页面

如何取值呢?

------解决方案--------------------
表单的action='123.php',METHOD=get,用$_GET['表单变量名']取值。
如果不想让浏览器显示参数值或者参数值大于2k,METHOD=post,并用$_POST[]取值.
------解决方案--------------------
http://www.baidu.com?id=1&wd="+document.getElementById("find").value,"_blank"
引号不能乱用 
"http://www.baidu.com?id=1&wd="+document.getElementById("find").value,"_blank"


查 询

Statement:
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