According to the prior post I asked here. I tried hours to find out the answer. Till now there's no luck. But I getting with something with the array.
I echo the value of $_POST[user_rate] and it's = Array
So I tried to get the first array of user_rate by doing this:
echo $_POST['user_rate'][0];
And it only shows A instead of a value. I expected 2400 because the previous page I sent the array from user_rate[] (you can click the link above to see what happens back there).
Now the question is why it turns A instead of value?
Update: this is the value of user_rate after I ran the code it.
foreach($user_rate as $key=>$val){echo "$key=$val<br />";}
0=2400
1=2400
2=2400
3=2400
4=2400
5=2400
6=2400
7=2400
8=2400
9=2400
10=2400
11=2400
12=2400
13=2400
Thank you.
print_r($_POST).var_dump($_POST['user_rate']);show?$_POST['user_rate']cannot both beArrayandnull. Take a step back, take a deep breath, and post all information available as clearly as possible. Post code, what you expect it to do, what you actually get, and avar_dumpof all relevant variables in this code. We cannot answer a question by getting piecemeal information from the comment section; we need one coherent block of information.