I've 2 hidden fields known as hdnBrId and hdnCmdAction. I set all of them with javascript calls using their power grid row cells eg hdnCmd is placed to "Edit" and also the row id is placed similarly. after which a publish from jquery

After i try query their values (prior to the if or before any javascript) (despite an echo) eg echo $_Publish['hdnCmd']
I recieve nothing and if($row->BrId == $_Publish["hdnBrId"] and $_Publish["hdnCmd"] == "Edit")
clearly isn't working.

Anybody understand what to here ? thx