hallo,
ich habe 3 files, 2 html und 1 python.
die erste ID:Input
HTML
<html> <body>
<form action="Calculated" method="POST">
Please enter the following information:</p>
First number :<input name="first:int" size="20">
Second number:<input name="second:int" size="20">
<input type="submit" value=" Calculate ">
</form>
</body>
</html>
Alles anzeigen
und dann die python, ID:Calculated
zum letzt, ID:Result
HTML
<html>
<body>
<span tal:content="first:int"></span> +
<span tal:content="second:int"></span>
Result:
<span tal:content="python: here.Calculated(first,second)" ></span> [/b] </span> </body> </html>
leider wenn ich ausfuhre bekomme ich diese error:
Error Type: NameError
Error Value: global name 'first' is not defined
ich habe doch definiert first:int
mfg,
Stevchen