Hello all, I have a large system in development, can't say on what at all. However my question is rather than having to define my $_POST methods each and every time is there any particular means in which I can dynamically add the $_POST reference to an array.
my general structure atm follows:
now this is all very well and good for like 5 entries, however this system has over 400 entries in it. I need to figure out a way of pretty much generating a $_POST[id] for each post I submit.
edit:
just a thought would I be on the right tracks if I used something like
my general structure atm follows:
PHP:
self::$posts = array(
'something' = $_POST['something'],
...
);
now this is all very well and good for like 5 entries, however this system has over 400 entries in it. I need to figure out a way of pretty much generating a $_POST[id] for each post I submit.
edit:
just a thought would I be on the right tracks if I used something like
PHP:
foreach($_POST as $post => $key){
}
Last edited: