If I have two inputs like the following
<input type="text" name="id">
<input type="text" name="name">
Then it is possible to get values in array on backend like this
array("id"=>"name")
If it is possible then how it can be done?
If I have two inputs like the following
<input type="text" name="id">
<input type="text" name="name">
Then it is possible to get values in array on backend like this
array("id"=>"name")
If it is possible then how it can be done?
2
Answers
You can send your post via POST method.
After that :
Hope you are doing well and good.
Umm, I just got your query. You want to make id as a key and name as a value in array. So here, May be i found your solution.
From the above code you can get answer like below,