Setting default values in a form

Status
Not open for further replies.

james_sgp

New Member
Hi, I`m trying to create an application where the user can define default units for distance, weight, pressure, etc. I have a form where these can be defined; I`d like to get these values and set them as defaults in another form. Is that possible, if so cive me a few clues...?
 
The only way I can think of off the top of my head would be to use eval'ed defaults in your elements, and grab the values you need direct from the table used by the defaults form, in your eval'ed PHP code.

Rather than do a db lookup for each element, you could probably just grab all the values you need from the db in the first element's PHP into an array, and access the array from the rest of the elements on the form.

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top