PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
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.
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?
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.