CHAPTER 11 – Flexy HTML Element Handling
Finally, Flexy can parse HTML form elements and fill them in with correct data. This makes it easy to create a form template in some web-design tool without having to dissect the template before using it on your site. Flexy handles the following four HTML elements (see Table 11.4). Table 11.4 HTML Elements <form name="xxx"> <input name="xxx"> <select name="xxx"> <textarea name="xxx"> When Flexy finds any of these HTML elements in the template, the ele- ment is replaced by PHP code that outputs the element with the right attributes: <html> <head><title>{title}</title></head> <body bgcolor=white> <form name="myform"> {user_label} <input type="text" name="user"> <br> {pw_label} <input type="password" name="pw"> </form> </body> </html> In this template, the <form> and <input> elements will be replaced by Flexy, with parameters filled in.