PHP how to post associative array?

santiz

New Member
I have the following form:\[code\]<form action="options.php" method="post"> <input type="text" name="deptid" id="deptid" /> <input type="text" name="deptname" id="deptname" /> <input type="submit" name="submit" id="submit" value="http://stackoverflow.com/questions/14050812/save" /></form>\[/code\]Is it possible to pass the two values into one associative array using only php script ?I would like to pass it in this form:\[code\]array('deptid'=>'deptname')\[/code\]Thanks.
 
Back
Top