hi,This version of the class has more features than `Fillform` class and has been corrected disadvantages of it. It has separated programming in PHP and designing and done processing on designed template and then print them out. `Fillform` class is based on function preg, but this new class has been written based on domDocument and considered template or output HTML as a XML doc and check it and if necessary, will modify it.
Features of class:
â— Reading template or HTML doc from file address or as a string
â— Adding tag or new content to content of head and body tag
â— Setting title for page by titlepage function
â— Changing or adding content to a tag
â— Setting attribute for one or some tags.
â— Finding one or some tags based on id, class, title and deleting tag or specified tags
â— Working with forms
â–¡ Setting textbox value
â–¡ Selecting from dropdownlist
â–¡ Selecting an option through radiobuttons group
â–¡ Checking or unchecking a checkbox
â–¡ Setting value of hiddenfield
â— Inserting or retrieving after submit the form
â— Inserting a template into another template
â— ...
/*******************************************************************************/
|