'Nother愚蠢的PHP查询字符串问题。 [英] 'Nother stupid PHP query string issue.

查看:64
本文介绍了'Nother愚蠢的PHP查询字符串问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2天就足够了,所以我会对你有所了解。 :-)



我是PHP新手但必须使用它。



我的网络服务器从LAN上的另一台服务器192.168.2.2接收此信息。以下是来自apache访问日志。注意查询字符串上的所有变量是如何很好并填充的。



192.168.2.2 - - [27 / Jan / 2014:02:05:27 -0700] GET /GetActCode.php?productid=5&customeremail=buyer@paypalsandbox.com&customername=John Smith& code = AVEP-SBU7-ND5K& orderref = 989062279& lastname = Smith HTTP / 1.0200 113 - -





这是接收脚本。不是很多。最初,$ _GETs都是$ _REQUEST。

但是没有区别。



只填写$ name和$ email,所有其他变量$ last,$ actcode和$ ordernum 始终为空。已经有两天我已经运行了脚本。



我即将放弃。



GetActCode.php



$ name = $ _GET ['customername'];

$ last = $ _Get ['姓氏'];

$ email = $ _GET [customeremail];

$ actcode = $ _GET ['code'];

$ ordernum = $ _GET [orderref];



?>



再次提前感谢很抱歉成为这样的PITA。



-Sigh ... Ron

2 days is enough, so I'll bug you all about it. :-)

I'm new to PHP but have to use it.

My web server is receiving this from another server at 192.168.2.2 on the LAN. The following is from the apache access log. Notice how all the variables on the query string are nice and populated.

192.168.2.2 - - [27/Jan/2014:02:05:27 -0700] "GET /GetActCode.php?productid=5&customeremail=buyer@paypalsandbox.com&customername=John Smith&code=AVEP-SBU7-ND5K&orderref=989062279&lastname=Smith HTTP/1.0" 200 113 "-" "-"


Here is the receiving script. Not much to it. Originally, the $_GETs were all $_REQUEST.
It makes no difference however.

Only $name and $email are being filled, all other variables, $last, $actcode and $ordernum are always blank. Have been for the 2 days I have had the script running.

I'm about to throw in the towel.

GetActCode.php

$name = $_GET['customername'];
$last = $_Get['lastname'];
$email = $_GET["customeremail"];
$actcode = $_GET['code'];
$ordernum = $_GET["orderref"];

?>

Thank in advance again and sorry to be such a PITA.

-Sigh... Ron

推荐答案

_GETs全部


_REQUEST。

但是没有区别。



只有
_REQUEST.
It makes no difference however.

Only


名称和


这篇关于'Nother愚蠢的PHP查询字符串问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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