How do I keep submit buttons with the same button-like appearance?

1

I noticed that when I put the buttons on a form they look different.

This is what I did:

<div class="btn-group" id="language_selector" role="group" aria-label="...">
    <?php                                               
        echo("<form action='' method='post'> 
        <input type='submit' class='btn btn-default' $activeClass  name='en' value='EN' />
        <input type='submit' class='btn btn-default' $activeClass  name='pt' value='PT' />
        <input type='submit'class='btn btn-default' $activeClass  name='es' value='ES'/>                            
</form>"); 
?>

But in the aspect it is quite different from the example:

<div class="btn-group" role="group" aria-label="...">
  <button type="button" class="btn btn-default">Left</button>
  <button type="button" class="btn btn-default">Middle</button>
  <button type="button" class="btn btn-default">Right</button>
</div>

I would like the submit buttons to be the same as button .

link

    
asked by anonymous 28.09.2015 / 14:56

1 answer

0

I found the solution and solved the problem with the following code:

<form action='' method='post'>
 <div class="btn-group" id="language_selector" role="group" aria-label="...">
  <?php                                             
  echo("
     <input type='submit' class='btn btn-default' $activeClass  name='en' value='EN' />
     <input type='submit' class='btn btn-default' $activeClass  name='pt' value='PT' />
     <input type='submit'class='btn btn-default' $activeClass  name='es' value='ES'/>                           
       </div>
</form>"); 
    ?>

If someone has the same problem I had, this is the solution: I just changed the order of the tags by putting form on the outside.

    
28.09.2015 / 18:32