我如何使用查询字符串? [英] How Can I Use Query String?

查看:99
本文介绍了我如何使用查询字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

querystring:

 <?  php   

echo '< html > ';
echo'< body > < /跨度>';
$ b ='ascnalsnlasnlkmnaksl';
echo< 表格 方法 =' 发布' action =' querystring1.php?$ b' > ;
echo'< 输入 类型 = text name = txt1 > ';
echo'< 输入 type = submit name = sbm1 > ';
echo'< / form > ';
echo'< / body > ';
echo'< / html > ';
?>



querystring1:

  <?php  
if(isset($ _ POST [' sbm1' ])){
$ a = $ _ POST [' txt1'];
echo $ a ;
if(isset($ _ POST [' b'])){
$ u = $ _ POST [' b'];
echo $ u ;
}
}
?>







如何在本页中使用$ b

:querystring1

?????

解决方案

b ='ascnalsnlasnlkmnaksl';
echo< 表格 方法 =' 发布' action =' querystring1.php?


b' > ;
echo'< 输入 类型 = text name = txt1 > ';
echo'< 输入 type = submit name = sbm1 > ';
echo'< / form > ';
echo'< / body > ';
echo'< / html > ';
?>



querystring1:

  <?php  
if(isset(


_POST [' SBM1' ])){

querystring:

<?php

echo'<html>';
echo'<body>';
$b='ascnalsnlasnlkmnaksl';
echo"<form method='post'action='querystring1.php?$b'>";
echo'<input type="text"name="txt1">';
echo'<input type="submit"name="sbm1">';
echo'</form>';
echo'</body>';
echo'</html>';
?>


querystring1:

<?php
if(isset($_POST['sbm1'])){
$a=$_POST['txt1'];
echo $a;
if(isset($_POST['b'])){
$u=$_POST['b'];
echo $u;
}
}
?>




how can i use from $b
in this page : querystring1
?????

解决方案

b='ascnalsnlasnlkmnaksl'; echo"<form method='post'action='querystring1.php?


b'>"; echo'<input type="text"name="txt1">'; echo'<input type="submit"name="sbm1">'; echo'</form>'; echo'</body>'; echo'</html>'; ?>


querystring1:

<?php
if(isset(


_POST['sbm1'])){


这篇关于我如何使用查询字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆