PHP/Form/Self Call Form

Материал из Web эксперт
Перейти к: навигация, поиск

Call MySelf PHP

<!-- Save as CallMySelfPHP.php -->
<HTML>
<BODY>
<FORM METHOD="POST" ACTION="CallMySelfPHP.php">
    <TABLE>
    
    <TR>
    <TD><INPUT TYPE="TEXT" NAME="OP1" 
      VALUE="<? echo  $OP1 ?>"></TD>
    </TR>
    
    <TR>
    <TD ALIGN="CENTER">+</TD>
    </TR>
    
    <TR>
    <TD><INPUT TYPE="TEXT" NAME="OP2" 
      VALUE="<? echo  $OP2 ?>"></TD>
    </TR>
    
    <TR>
    <TD ALIGN="CENTER"><INPUT TYPE="SUBMIT" VALUE="="></TD>
    </TR>
    
    <TR>
    <TD><INPUT TYPE="TEXT" NAME="RESULT" 
      VALUE ="<? echo  $OP1 + $OP2 ?>"
      disabled></TD>
    </TR>
    
    </TABLE>
</FORM>
</BODY>
</HTML>