Hi all!
How do I convert this code into the Yii code using submit button
<!DOCTYPE html>
<html>
<script>
function calculate(value)
{
return value*value;
}
</script>
<body>
<form NAME="Calc">
<table BORDER=4>
<tr>
<td>
<input TYPE="text" NAME="input" id='txtBox' Size="16">
<br>
</td>
</tr>
<tr>
<td>
<input TYPE="button" NAME="DoIt" VALUE =' = ' OnClick="Calc.input.value=calculate(Calc.input.value)">
<br>
</td>
</tr>
</table>
</form>
</body>
</html>