tags:

views:

27

answers:

1

hi everyone,, i tried this example on ajax here

and i wonder if i can echo/print a specific element of the array at the php side
let's say i just want to print the second element which is "lastName"
i tried echo $t2lpostData[1]
it gives me error
"Undefined offset: 1 in C:\wamp\www\thank-you.php on line 12"

help plz,,

+1  A: 
echo $t2lpostData["lastName"]

You have to access it by name instead of index.

Daniel DiPaolo
i did as you told me , but it's still gives me the same error"Undefined index: lastName "... -__-
gin