This topic is locked

on load event

4/22/2007 11:19:55 PM
PHPRunner General questions
E
evan_ad2000 author

Hi,
I was wondering, how can I modify a field's value when the page is being loaded? I want to query the DB to find the max ID and show it on the web page as a read only information.
Thanks,

Evan

J
Jane 4/23/2007

Evan,
use AddOnLoad event on the Events tab for this purpose. Here is a sample:

//find max ID

...
//assign resulting value (in the $value variable) to the readonly field

global $readonlyfields;

$readonlyfields["FieldName"]= $value;

E
evan_ad2000 author 4/23/2007

Evan,

use AddOnLoad event on the Events tab for this purpose. Here is a sample:


Hi Jane,
Thanks alot. That worked out perfectly!
Evan