2015-10-22 2 views
0

У меня есть следующая кнопка отправки, которая не приводит меня к search.php. Пожалуйста, объясните мне, что с ним не так.Кнопка отправки не работает в html5

<div class="row" style="margin-top:80px;"> 
    <form class="form-signin" id="Form1" action="search.php" method="post"> 

    <div class=" col-xs-12" style="float:left;display:inline;"> 
     <div class="ui-widget"> 
     <label for="city">City: </label> 
     <input id="city"> 
     </div> 
     <button type="button" class="btn btn-default" type="submit">Search</button> 
    </div> 
    </form> 
</div> 

ответ

3
<button type="button" .... type="submit">Search</button> 

Вы определили type дважды. Удалите тот, который вы не хотите.

Смежные вопросы