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

使用javascript从URL中提取文本并在php文件上显示

I have an error message on the URL when wrong password or captcha is added. Error looks like this on the url:

www.domain.com/signup.php?error_msg=The+characters+you+entered+did+not+match+the+word+verification

How to extract this from URL and display on the PHP file?

Just use the global $_GET array to retrieve the value:

echo $_GET['error_msg'];

More about this array can be found in the official documentation: http://php.net/manual/en/reserved.variables.get.php

近期文章

  • preg_replace plus在src的开头和结尾附加,以替换cid:
  • 数组在PHP上的每个类别上仍然重复或重复
  • 我可以同时包含MySQL和MySQLi数据库连接文件吗?
  • HTTP响应是整个PHP文件
  • PHP - 数据库列数据查询返回另一列数据
  • 用于页面的另一个循环内的帖子的Wordpress循环 - 一个页面网站
  • 在通过php解析xml时如何处理500内部服务器错误?
  • 如何在JavaScript中从服务器链接获取文件的直接链接?
  • php围绕一个数字[重复]
  • 将参数传递给ajax调用以只读取json文件的特定字段
  • PHP fetch_array()函数
  • 让grep搜索所有文件夹?
  • Ajax不在网站上工作
  • MySQL中日期的混合排序
  • SQL语法错误; [关闭]
  • 用JSON从数组中提取数据
  • PHP:如何将重音转换为非重音元音
  • PHP只显示$ value,直到$ value更改为止
  • 如何使用PHP真正解码7Bit电子邮件?
  • 如果在存储库中设置,则Composer自动加载文件不起作用

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华