Call MySelf PHP : Self Call Form « Form « PHP






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>


           
       








Related examples in the same category

1.A PHP Number Guessing Script