Acey99
11-21-2006, 05:07 PM
Is it possible to put _POST or _GET vars in a php 4+ class ??
if I had
class MyPost{
function MyPost(){
foreach ($_POST as $k => $v) $this->$k = $v;
}
}
I realize the above does not work, just wondering how to fix it.
if I had
class MyPost{
function MyPost(){
foreach ($_POST as $k => $v) $this->$k = $v;
}
}
I realize the above does not work, just wondering how to fix it.