In PHP, $ _POST contains input fields placed 'from an HTML form.
In an HTML form, elements have names
Address: <input type='text' name='LoginForm[addr]'>
City: <input type='text' name='LoginForm[city]'>
ST: <input type='text' name='LoginForm[st]'>
So, when PHP provides this input to the script, it injects names into the array by names that you can use the iterator with foreach.
source
share