I'm totally new to php. I'm trying to echo the value of an input field into a an array but it doesn't seem to work.e.g echo the value of hidden-input as the value for origin in the array. How can I achieve this.
<form method="post"> <input id="hidden-input" name="from[]" value=""> </form> <?php
$params = array(
'origin' => $_POST['from'],
'destination' => um_user('postal_zip_code'),
'sensor' => 'true',
'units' => 'imperial'
); ?>