Hey guys,
I was making a form that is um... quite large and all inputs consist of the form looking like
<input type="text" id="first_name" name="first_name" />
so instead of having to do
$first_name = $_POST['first_name'];
and so on for every input, is there a way to grab every 'name' or 'id' from each input within the <form></form> and apply to a variable of the same value of the 'name' or 'id'.
I was thinking of something like a foreach statement??
Any ideas?