How to associate a script with this form:

<TITLE>Перевод числа из одной системы счисления в другую</TITLE> <form method="POST" action=""> Десятичное число <INPUT TYPE=TEXT NAME="Десятичное число" SIZE=40xBR> <input type="submit" value=" перевести" name="but"> Двоичное число <INPUT TYPE=TEXT NAME= "Двоичное число" SIZE=40xBR> <input type="submit" value=" перевести" name="but"> </form> 

so that when you enter a number, the result is displayed.

  • one
    @ andrey26rus, To format the code, select it with the mouse and click on the button 101010 of the editor. - atnartur

1 answer 1

In the action is just prescribed the path to the script. When you click a button, the browser will send the entered data to it. And with an empty "action" you can write the computing script directly in the same file with the form.