Custom url inside the button I was creating my first project with drupal and now my problem was the request new password since this is a link and i want to make it into buttons so i generate my hook_form_alter but i got a problem with the url i'm not sure if markup is working.

Here my code for form_alter:

  $form['actions']['request'] = array(
'#markup' =&gt; l(t('Forgot Password?'), 'user/password', array('attributes' =&gt; array('class' =&gt; 'form-request','title' =&gt; t('Request a new generated password via e-mails.')))),'#weight' =&gt; 2, '#type' =&gt; 'button' );


I'm not sure if this is correct. Thanks for the help folks!
Here how your code should look like:

/**
 * Implement hook_form_alter().
 */
function mymodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {

  if($form_id == 'FORM_ID') {
    $form['actions']['request'] = array(
      '#type' =&gt; 'submit',
      '#value' =&gt; t('Forgot Password?'),
      '#submit' =&gt; array('mycustom_submit_redirect'),
      '#limit_validation_errors' =&gt; array(),
      '#attributes' =&gt; array(
        'class' =&gt; array('form-request'), 
        'title' =&gt; array(t('Request a new generated password via e-mails.')),
      ),
      '#weight' =&gt; 2, 
    );
  }
}

function mycustom_submit_redirect(&amp;$form, &amp;$form_state) {
  // sometimes it seems to fail
  //$form_state['redirect'] = 'user/password';

  // alternative method to redirect
  $options['absolute'] = TRUE;

  $url = url('user/password', $options);

  header('Location: ' . $url);

  drupal_exit($url);
}