B
Blue Cat
I'm trying to write an HTML page with a PerlScript. Something like what you
see below. How do I do it?
<HTML>
<SCRIPT LANGUAGE = "PerlScript">
Sub DoSomething {
$a = [data recovered from an input box called txrNumber];
$b = [a mathematical operation with $a];
[Put $b into an input box called Result];
}
</SCRIPT>
<BODY>
<INPUT TYPE = TEXT NAME = "txtNumber" SIZE = 25>
<INPUT TYPE = BUTTON VALUE = "Click Me" onclick = "DoSomething()"> <BR>
<INPUT TYPE = TEXT NAME = "Result" VALUE = 0 SIZE = 25>
</BODY>
</HTML>
see below. How do I do it?
<HTML>
<SCRIPT LANGUAGE = "PerlScript">
Sub DoSomething {
$a = [data recovered from an input box called txrNumber];
$b = [a mathematical operation with $a];
[Put $b into an input box called Result];
}
</SCRIPT>
<BODY>
<INPUT TYPE = TEXT NAME = "txtNumber" SIZE = 25>
<INPUT TYPE = BUTTON VALUE = "Click Me" onclick = "DoSomething()"> <BR>
<INPUT TYPE = TEXT NAME = "Result" VALUE = 0 SIZE = 25>
</BODY>
</HTML>