This topic is locked

how can i get the value in a spesific textbox running in view page?

12/23/2009 5:54:05 AM
PHPRunner General questions
Z
zakwithu2 author

Hi all,
I'm using phprunner 5.1
simple question:

how can i get the value in a spesific textbox running in view page? and in which event i should write my code? onload or something else?
for example:

suppose i have two textboxes and one in the view page:

textbox1 contain value 10

textbox2 contain value 20
$result=textbox1 + textbox2
echo $result;
how can i get the value in a spesific textbox running in view page?
thank you all,

J
Jane 12/24/2009

Hi,
use View page: Before display event for this purpose:

http://www.xlinesoft.com/phprunner/docs/before_display.htm

Field values are in the $values array:

$result=$values["textbox1"] + $values["textbox2"];

echo $result;