<i id='VFGBT'><tr id='VFGBT'><dt id='VFGBT'><q id='VFGBT'><span id='VFGBT'><b id='VFGBT'><form id='VFGBT'><ins id='VFGBT'></ins><ul id='VFGBT'></ul><sub id='VFGBT'></sub></form><legend id='VFGBT'></legend><bdo id='VFGBT'><pre id='VFGBT'><center id='VFGBT'></center></pre></bdo></b><th id='VFGBT'></th></span></q></dt></tr></i><div id='VFGBT'><tfoot id='VFGBT'></tfoot><dl id='VFGBT'><fieldset id='VFGBT'></fieldset></dl></div>

      <small id='VFGBT'></small><noframes id='VFGBT'>

      • <bdo id='VFGBT'></bdo><ul id='VFGBT'></ul>
      <legend id='VFGBT'><style id='VFGBT'><dir id='VFGBT'><q id='VFGBT'></q></dir></style></legend>
      <tfoot id='VFGBT'></tfoot>

      1. 表单提交 URL 格式

        Form Submit URL Formatting(表单提交 URL 格式)
        • <bdo id='KndS0'></bdo><ul id='KndS0'></ul>
        • <legend id='KndS0'><style id='KndS0'><dir id='KndS0'><q id='KndS0'></q></dir></style></legend>
        • <small id='KndS0'></small><noframes id='KndS0'>

        • <tfoot id='KndS0'></tfoot>
            • <i id='KndS0'><tr id='KndS0'><dt id='KndS0'><q id='KndS0'><span id='KndS0'><b id='KndS0'><form id='KndS0'><ins id='KndS0'></ins><ul id='KndS0'></ul><sub id='KndS0'></sub></form><legend id='KndS0'></legend><bdo id='KndS0'><pre id='KndS0'><center id='KndS0'></center></pre></bdo></b><th id='KndS0'></th></span></q></dt></tr></i><div id='KndS0'><tfoot id='KndS0'></tfoot><dl id='KndS0'><fieldset id='KndS0'></fieldset></dl></div>

                    <tbody id='KndS0'></tbody>

                  本文介绍了表单提交 URL 格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我有一个表单,提交时会转到 URLsignup.php?username=xx",其中 xx 是输入字段.相反,我想知道是否可以将它转到以下网址signup/xx",其中 xx 取自输入字段.

                  I have a form which when submitted goes to the url "signup.php?username=xx" where xx is an input field. Instead of this I was wondering if I could get it to go to the following url "signup/xx" where xx is taken from the input field.

                  推荐答案

                  为此,您需要使用 Javascript 和某种类型的 .htaccess.但是为什么不使用 POST 而不是 GET 呢?

                  You need to use Javascript and some type of .htaccess for that. But why don't you use POST instead of GET?

                  我不想在我的历史记录中出现 singup?username=sawny&password=1234.

                  I don't want singup?username=sawny&password=1234 in my history.

                  我做过这样的事情:

                  $(document).ready(function() {
                      $("submit[name='foo']").live('submit', function() {
                  
                          var usr = $("form input[name='user']").val();
                          $("form input[name='user']").remove(); //Else it will be singup/usr?user=
                  
                          $("form[name='bar']").attr("action", "singup/"+ usr);
                      });
                  });
                  

                  然后在 .htaccess 文件中发布正则表达式 @zero.

                  and then the regexp @zero posted in a .htaccess file.

                  这篇关于表单提交 URL 格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <i id='ZRel6'><tr id='ZRel6'><dt id='ZRel6'><q id='ZRel6'><span id='ZRel6'><b id='ZRel6'><form id='ZRel6'><ins id='ZRel6'></ins><ul id='ZRel6'></ul><sub id='ZRel6'></sub></form><legend id='ZRel6'></legend><bdo id='ZRel6'><pre id='ZRel6'><center id='ZRel6'></center></pre></bdo></b><th id='ZRel6'></th></span></q></dt></tr></i><div id='ZRel6'><tfoot id='ZRel6'></tfoot><dl id='ZRel6'><fieldset id='ZRel6'></fieldset></dl></div>

                          <tbody id='ZRel6'></tbody>
                        <legend id='ZRel6'><style id='ZRel6'><dir id='ZRel6'><q id='ZRel6'></q></dir></style></legend>

                        <small id='ZRel6'></small><noframes id='ZRel6'>

                          • <bdo id='ZRel6'></bdo><ul id='ZRel6'></ul>
                          • <tfoot id='ZRel6'></tfoot>