Let me see if I can explain better.
I have built an array with 4 values:
$build["username"]
$build["password"]
$build["firstname"]
$build["lastname"]
I now pass it to an object:
$admin->add_user($build);
now, in the function add_user:
function add_user ($form) {
foreach ($form as $name => value) {
echo "$name => $value<br>";
}
}
the display output is:
username => djoseph74
password => password
firstname => Dan
lastname => Joseph
x => 7
x => 3
I have no idea where the x and y came form, and did not assign them to the array.
Does that make more sense? Any ideas? Anyone?
-Dan Joseph