Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
When I using ajax post data with struct
And I get data from code here:
$_POST["post"]; => result is 979, that's OK
$_POST["post"];
$_POST["href[href]"]; => result is 0, How to fix it?
$_POST["href[href]"];
Bracket notation is used to create an array entry. Use this instead:
$_POST["href"]["href"];
Calling $_POST["href"] will return an associative array:
$_POST["href"]
array( 'commentID' => 297980913637729, 'href' => 'http://dongcam.vn/t3927' );
Add a comment
It's a multidimensional array, so:
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.