Hi,
Need some help and posibly ideas on making a component in a school project to work.
It goes like this: I want to use something like a pre-formated form that automaticly fills in some fields from a database. The idea is to use on things like filling out a declaration of mariage or sickness to take a lease from work were there are some fields like a persons name or phone number that is fetched from a database.
But I don´t want to make rigid forms so the whole deal will involve leting the user create a form and puting the calls to databases that he wants.
So as u can see it won´t be easy knowing what parts of the form will be stuff to get from the db and how many.
Well i´ve been getting on solving this and I´m thinking of using the php command Explode but have a doubt with it.
I´m thinking of using a For cycle to run by all the sub-strings Exploded but don´t know if it´s possible to know how much sub-string are made with this command.
And if anyone has diferent ideas on making the replaces I would sure apreciate it.