0

When I using ajax post data with struct

firebug

And I get data from code here:

$_POST["post"]; => result is 979, that's OK

$_POST["href[href]"]; => result is 0, How to fix it?

2 Answers 2

4

Bracket notation is used to create an array entry. Use this instead:

$_POST["href"]["href"]; 

Calling $_POST["href"] will return an associative array:

array( 'commentID' => 297980913637729, 'href' => 'http://dongcam.vn/t3927' ); 
Sign up to request clarification or add additional context in comments.

Comments

0

It's a multidimensional array, so:

$_POST["href"]["href"]; 

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.