PHP : Form Builder / Generator

My work is involving more and more PHP-based forms, so I decided today to find a good form generator to save my time.
Here’s my requirements :

  1. Willing to pay : I’m willing to pay for the right solution.
  2. Easy to use : Some of the script actually make life harder for you, go figure. I was looking to save time, not to spend more of it
  3. Flexible : I still need to apply my own style / formatting. The solution must allow me to do this, while comforming to the second requirement above
  4. Saving to database : some PHP form makers / generators will only allow you to submit the form to be send by email.
  5. Validation : surprisingly, quite a lot of the (even) commercial solutions out there are missing this.
  6. Source available : I need the source code available to me, in case of problems / need for further customizations. Some packages doesn’t give you this.

Too picky ? Well, my needs are quite advanced indeed.
Anyway, I spend almost two hours browsing around with no joy, until suddenly …. to my surprise (again), it seems that the best solution for my needs is an open source one – the HTML_QuickForm PEAR Package.

It’s easy to use (see the tutorial for yourselves).

It’s definitely very flexible; it provides 8 renderers and support several template engines ! It allows you to process the submission however you chooses with the process method – by email, to database, or you can also process it straight away in the same script.

And validations… it’s really sweet. You can choose whether to do it on the server or client side. When you choose to do it on the client, it automatically generate the needed Javascript codes for you. Awesome is not descriptive enough word for it.
There are many ready-to-use validation rules; alphanumeric, lettersonly, maxlength, minlength, etc – and the regex rule fulfill any other needs that’s otherwise not available.

With the source also available, it’s really hard for me to look for anything else. But if you think you’ve found something better, feel free to let me know.

Enjoy.

62 thoughts on “PHP : Form Builder / Generator

  1. Eh, kalo kita hosting gitu bisa gak ya install2 package PEAR? KAlo bisa gimana ya caranya?

  2. It has been over a year since you posted this article and (presumably) started working with this form solution. How has it worked out? Are you still using it? I have a similar need – I am simply tired of writing code for handling forms. The one key component I want out of these tools is the ability to display data that may already be present in a database. In other words, I want to be able to edit data rather than simply performing data entry.

  3. Hi Olaf, thankfully there are many solutions for your forms needs nowadays in PHP.
    .
    The most complete one is by installing Joomla, and then installing one of its many Forms modules (or also called extensions).
    By this way, you instantly get rapid form building ability, complete with other needs provided by Joomla framework (security, authentication, CMS, etc)
    .
    If you’re going to build your own application, fear not, there are standalone form generators (not tied to Joomla). try searching for “dbqwiksite” and “phpmaker”.
    These 2 products will generate the CRUD (create-read-update-delete) PHP form codes just by you pointing then to the database table.
    Couldn’t be simpler. And at least dbqwiksite is highly customizable; they truly empower you.
    .
    Hope it helps.

  4. Is there anything available similar to this but for WordPress? No I can see that joomla is much more flexible in this regard but its a bit late to change!

  5. Awesome! A customizable form that’s open source. I’m bookmarking this. This’ll come in handy in my consulting work. Thanks for the tip!

  6. This is awesome, don’t you love it when the program that will work best is open-source. I’m gonna keep this on hand in case I need it as well, thanks!

  7. I’ve heard lots of good things about joomla, but have yet to test it. I’m still undecided whether i want to invest time in joomla or drupal.

  8. Hello webmaster, Like your site some very useful information for joomla social bookmark and your post regarding PHP : Form Builder / Generator looks very interesting for me. Keep up the good work.

  9. Is there anything like this tool but for WordPress? I can see that joomla is much more versatile in this regard but its a bit late to change! Any thuoghts would be appreciated

  10. Good post.It allows you to process the submission however you chooses with the process method – by email, to database, or you can also process it straight away in the same script.

  11. Great response.It is most flexible and so I still need to apply my own style / formatting. The solution must allow me to do this, while conforming to the second requirement above.

  12. Wow,great! This article is really excellent! You must see !

    Blu-ray Burner software is a powerful and best video Blu-ray DVD burner and Blue-ray burner tool.It can help you burn videos to Blu-ray Disc (BD) and also enable you to burn all these videos to Blu-ray disc and create your own Blu-ray movie.

  13. VOB Converter for Mac os x is really a great software which can help you convert vob files on Mac to various video formats such as mp4, avi, mov, mpeg-4 etc. It is an all-in-one mac vob converter that can both convert vob video files on your hard drive and convert vob files on dvd disc.

  14. Firefox is getting slower and slower. I’m using Google chrome instead, because I find Firefox slower and it’s affecting my work as a content writer.

  15. looks like everybody is spamming here with all kind of links, but just a few comments are related to the post. i’ve seen that lately, this blog became full of spam, because it’s dofollow and no one moderates the comments… well, it’s up to you.

  16. Wow It is very helpful for me. thanks a Lot! I will definitely try it and let me tell you, while reading your requirements I felt you were reading my mind!

  17. Nice post. The information presented here was the greatest I could discover all day long, and I have been searching tough on the Internet. I think you ought to put this up on a large social bookmarking website, you will discover that it spreads like wildfire
    ray ban prescription eyeglasses

  18. I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post.
    650-293 // 650-294 // 650-378 // HP0-J49 // 70-573 // 70-664 // 70-450 //

  19. Offering quality LV products with favorable prices, Louis Vuitton Outlet store is at your service. Hurry up, or you can not seize the chance.

  20. Hello there, simply was alert to your blog through Google, and located that it’s really informative. I’m gonna be careful for brussels. I’ll be grateful for those who proceed this in future. A lot of people will likely be benefited from your writing. Cheers!

    vibrators

  21. Definitely imagine that which you stated. Your favorite justification seemed to be at the net the easiest thing to take into account of. I say to you, I definitely get annoyed even as folks consider worries that they just do not understand about. You controlled to hit the nail upon the top and defined out the entire thing with no need side-effects , people could take a signal. Will probably be again to get more. Thank you

  22. There are actually numerous details like that to take into consideration. That could be a great point to deliver up. I offer the ideas above as common inspiration but clearly there are questions like the one you carry up the place the most important thing will be working in trustworthy good faith. I don?t know if best practices have emerged around things like that, but I am certain that your job is clearly recognized as a fair game. Each boys and girls really feel the impact of just a second’s pleasure, for the rest of their lives.

Leave a Reply

Your email address will not be published. Required fields are marked *