I'm making a form that sends data to a normal php file, the problem is that I want to receive in that file. Both the values that come via $ _POST and the indexes of these values.
if I have the following input:
<input id="username" name="username" type="text">
and normally in the php would receive:
$username = $_POST['username'];
What I want to do is store the name of the index and its value in different variables.