<form action="test.php" method="post"> Name: <input type="text" name="fname" /> <input type="hidden" name="fname" value="test" /> Age: <input type="text" name="age" /> <input type="submit" /> </form>

How can I read the values of both the fields named fname ?

On my action file(test.php) under $_POST , I am getting only hidden field value.

Is there any PHP setting through which I can read both values?