I hate working with forms in PHP has always given me problems. As in formatting; handling punctuation inside a form input, manipulating strings for database insertions and so on. I also don't like that the form wizard that does everything for you - but I still would like a high level of customization. Help?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Use PHP framework like Zend. It has internal form handling solution.
回答2:
Somebody suggested PDO (PHP Data Objects) to me : http://php.net/manual/en/book.pdo.php . I have yet to check it out, but looks promising.