欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

深入extjs与php参数交互的详解

程序员文章站 2022-04-24 21:29:49
复制代码 代码如下:   helloworld</title&...</div> <div class="content"> <div class="codetitle"> <span><a style="cursor: pointer" data="46455" class="copybut" id="copybut46455" onclick="docopy('code46455')" target="_blank" rel="nofollow" href="/default/index/url?u=aHR0cHM6Ly93d3cuMTBxaWFud2FuLmNvbQ=="><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code46455"> <br><html><br> <head><br>  <title>helloworld</title><br>  <meta http-equiv="content-type" content="text/html; charset=utf-8"><br>  <link rel="stylesheet" type="text/css" href="../../ext-4.0.7-gpl/resources/css/ext-all.css" ><br>  <script type="text/javascript" src="../../ext-4.0.7-gpl/bootstrap.js"></script><br>  <script type="text/javascript" src="../../ext-4.0.7-gpl/locale/ext-lang-zh_cn.js"></script><br>  <script type="text/javascript"><br>   ext.onready(function(){<br>    var requestconfig = {<br>     url:'loginserver.php', //请求的服务器地址<br>     params:{username:'lowkey', password:'zq19890319'}, //请求参数<br>     method : "post",<br>     callback:function(options, success, response) {<br>         var msg=["请求是否成功:", success, "\n",<br>           "服务器返回值:", response.responsetext];<br>         ext.msg.alert("提示", response.responsetext);<br>        }<br>    }<br>    ext.ajax.request(requestconfig);<br>   });<br><br>  </script><br> </head><br><br> <body><br> </body><br></html><br> </div> <br><div class="codetitle"> <span><a style="cursor: pointer" data="38169" class="copybut" id="copybut38169" onclick="docopy('code38169')" target="_blank" rel="nofollow" href="/default/index/url?u=aHR0cHM6Ly93d3cuMTBxaWFud2FuLmNvbQ=="><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code38169"> <br><?php<br> $username = $_post["username"];<br> $password = $_post["password"];<br> $msg = "";<br> if($username=="lowkey" && $password=="zq19890319") {<br>  $msg = "登陆成功";<br> } else {<br> $msg = "登陆失败";<br> }<br> echo($msg);<br>?><br> </div> <br> </div> <div class="info-pre-next"> <p> 上一篇: <a href="/article/727492.html"> 8GB普及了这么多年:是时候全民上16GB内存了? </a> </p> <p> 下一篇: <a href="/article/727494.html"> 关于js与php互相传值的介绍 </a> </p> </div> <div class="wz_tuijian"> <p> 推荐阅读 </p> <ul> <li> <a href="/article/2010342.html" target="_blank" title="深入PHP curl参数的详解"> <h2> 深入PHP curl参数的详解 </h2> </a> </li> <li> <a href="/article/1950138.html" target="_blank" title="深入php self与$this的详解"> <h2> 深入php self与$this的详解 </h2> </a> </li> <li> <a href="/article/1589350.html" target="_blank" title="深入extjs与php参数交互的详解"> <h2> 深入extjs与php参数交互的详解 </h2> </a> </li> <li> <a href="/article/1436811.html" target="_blank" title="深入extjs与php参数交互的详解_PHP教程"> <h2> 深入extjs与php参数交互的详解_PHP教程 </h2> </a> </li> <li> <a href="/article/1385867.html" target="_blank" title="深入extjs与php参数交互的详解_PHP"> <h2> 深入extjs与php参数交互的详解_PHP </h2> </a> </li> <li> <a href="/article/1368992.html" target="_blank" title="深入extjs与php参数交互的详解_PHP"> <h2> 深入extjs与php参数交互的详解_PHP </h2> </a> </li> <li> <a href="/article/1290795.html" target="_blank" title="深入mysql_fetch_row()与mysql_fetch_array()的区别详解_php实例"> <h2> 深入mysql_fetch_row()与mysql_fetch_array()的区别详解_php实例 </h2> </a> </li> <li> <a href="/article/1282481.html" target="_blank" title="深入php self与$this的详解_PHP"> <h2> 深入php self与$this的详解_PHP </h2> </a> </li> <li> <a href="/article/1282473.html" target="_blank" title="深入php self与$this的详解_PHP"> <h2> 深入php self与$this的详解_PHP </h2> </a> </li> <li> <a href="/article/1272200.html" target="_blank" title="深入extjs与php参数交互的详解_PHP教程"> <h2> 深入extjs与php参数交互的详解_PHP教程 </h2> </a> </li> </ul> </div> </article> </div> </main> <footer><div class="box"><div class="ft_nav"><div class="ft_about"><p>关于网站</p><ul><li><a href="/sitemap.xml" target="_blank" title="网站地图">网站地图</a></li><li><a href="/list/2/" title="最新程序员文章站">最新程序员文章站</a></li></ul></div><div class="ft_contact"><ul><li>本站所有数据收集于网络如有侵犯到您的权益,请联系我们进行下架处理。</li><li class="email_show"></li></ul></div></div><div class="copyright"><div class="cr_left"><p> 备案号:<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">粤ICP备20058927号</a></p><p>© Copyright © 2020-2022 www.superweb999.com 程序员文章站. </p></div></div></div></footer> </body> </html>