Page 1 of 1
Generate form
Posted: Tue May 17, 2005 3:57 am
by S_henry
I want to make a system to generate form. There are 2 type of form (eg. leave, claim). I have made the template for each form (eg. leave.php, claim.php). In the main page, the system will ask user (eg. john) to input his personal info (eg. name, address, etc). Then after user finish input all the infos and click submit button, i want the system create the files (form files such as johnleave.php, johnclaim.php) based on the template. For example, johnleave.php is the file (leave form) that contain john's info on it. After system finish generate those form, system will save those files (johnleave.php, johnclaim.php) into a provided folder (eg. john). So anybody got any idea to do this pls? Don't hesistate to ask me if my explanation is still not clear enough.
Posted: Tue May 17, 2005 10:12 pm
by S_henry
Anybody got any idea pls?
Posted: Tue May 17, 2005 10:15 pm
by method_man
so you want it to make a .php file for each person that registers?
Posted: Tue May 17, 2005 10:44 pm
by S_henry
Yes. Something like that. Let say john is using the system. When john finish enter all his info and click submit button, then at this time, the system will start to generate the files (based on the template) and save it into a folder. You got any idea?
Posted: Wed May 18, 2005 2:18 am
by S_henry
The main points here are:
- generate the files based on the template (with user info)
- save the generated files into folder
Hopefully got anybody can help me..
Posted: Wed May 18, 2005 11:26 pm
by S_henry
Still no response..

Posted: Thu May 19, 2005 4:19 am
by phpScott
do some searching for templating as there is lots of info about it.
It is just generally substition and then saving the newly created variable as a file.
lots of info an this site as well.