*


Result:

Client Code:

<input name="text1" id="text1" value="20" type="text" />

<input name="text2" id="text2" value="30" type="text" /> <br />

<input type="button" name="calc1" value="Calculate" onclick=" new RSPA.Execute('MyClass.multiply()')" />

<input name="text3" id="text3" style="" type="text" />

Server Code:

PHP5

class MyClass extends Form{

  function multiply() {

       $val = $this->text1->value * $this->text2->value;

       $this->text3->value = $val;

  }

}

PHP4

class MyClass extends Form{  

function multiply() {

   $val = $this->controls["text1"]->getValue() * $this->controls["text2"]->getValue();

   $this->controls["text3"]->setValue($val);

}

}