Как в форму (тег form) вставить 2 различные кнопки?
Есть форма с полями для ввода данных и 2 кнопки. Обе кнопки рабочие, в зависимости от того, по какой кнопке произошел клик срабатывает разный обработчик.
<form name='FormName' action=""> <input type="text" name="content"> </form> <input type="button" name="Button1" onClick="document.FormName.action='file_1.php'; document.FormName.submit(); return true;"> <input type="button" name="Button2" onClick="document.FormName.action='file_2.php'; document.FormName.submit(); return true;">