php请问

WBOY
WBOYOriginal
2016-06-13 11:52:17991browse

php请教
$userMsg=$_POST['UserMsg'];  //ajax获取前台传递的对象
$userMsg->userName;//获取对象的属性

不知道 是不是这样写?求解?
------解决方案--------------------
print_r($_POST);
看看都有什么?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn