If I have something like this:
var whatever= {'"type"' : "p",'"caption"' : "Client: ",'"html"':clientName };
How would I pass var whatever into dform? Sort of like this:
$("#myform").dform({
"action" : "page.html",
"method" : "get",
"html" :
[
{
whatever
}
]
});
And then generate a form with something like this (assuming clientName = John):
Client: John
Essentially, I am pulling a bunch of data from a mysql db into arrays that I then populate into a form. For example, I have a form that lists first and last name and address. And if I add another field in the db for phone number I want the form to automatically start displaying the phone field without having to edit the form. So, I'm trying to get dform to auto generate the form based on what I pull from the db.
Thanks.