PHP - Convert all POST data into SESSION variables -
There should be a much more elegant way of doing this.
Recovery post data to session variables, without specifying all non-lineal line lines from each of them? Basically, I want to work below for all instances of X which is present in POST array.
if (! $ _ POST ['X'])) $ _SESSION ['X'] = $ _ Post ['X'];
I was going to do it one by one, but then I thought that there should be a much more elegant solution
or for that effect I will not use something like empty because it treats
0
empty.
Comments
Post a Comment