我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在.htaccess中使用表单POST方法传递值

We are using .htaccess to rewrite URLs. For example we use the following method:

rewriterule ^profile/([^?/]+)/?$ file.php?name=$1 [NC]

and on file.php we use the following GET method to receive value from name query string

$name=$_GET['name'];

Now the issue is I do not want to use this GET method. I do not want to use query string method. I want to use form POST method in .htaccess file.

I tried the following method:

RewriteCond %{REQUEST_METHOD} !^(POST)$

but I do not know how to use this method.

近期文章

  • Foreach语句打印出不正确的格式
  • 更改WooCommerce PDF发票模板中的[[ORDERINFO]]
  • 将巨大的wordpress插件数据作为数组插入wp-option表是正确的方法吗?
  • 将会话变量输入到登录用户和链接表的数据库中以获取用户名id
  • 在同一页面上用PHP读取javascript cookie
  • 如何在PHP中的文本文件中编辑不同用户的特定行
  • 在MySQL中的select语句中阻止变量计算
  • Web Crawlers似乎改变了我的HTTP_HOST值,这是典型的吗?
  • 顶级键上的PHP合并数组
  • 每3个foreach添加一个明确的div
  • 重新安排一个php数组?
  • 通过php排序csv数据
  • 如何在这个PHP文件中添加cookie [关闭]
  • 限制JSON访问只能使用一次
  • Symfony 2&mamp pro date.timezone错误
  • php中的自定义Filter数组值
  • Ajax呼叫响应未显示
  • php和java在同一个Web应用程序中
  • 无法使用预准备语句保存到db中
  • 在AJAX调用期间接收JSON解析错误

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华