SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Addict
    Join Date
    Jan 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Form class/validation

    Hi,

    I know this topic has been beaten to death in the forums but I still havent found what im looking for.

    I do not want to use pear quickform because the application will be distributed to a lot of shared hosts (as a commercial script). I also do not want to re-invent the wheel.

    What is the next best form generator/validator/etc. besides quickform?
    Or in other words an already built class that can be used?

  2. #2
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I think you can download pear quickform class on its own, without the whole library, here. As long as you keep the copyright notice in the class file, you can redistribute it.

    There are alot of options available, but I would say that the best one would be to make your own. It's not hard - but can be tedious.
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona

  3. #3
    SitePoint Zealot
    Join Date
    Nov 2005
    Location
    Nashville, TN
    Posts
    116
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  4. #4
    SitePoint Zealot
    Join Date
    Apr 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i recommend to use Dreamweaver cs3 , it is perfect in form generating , validation , only some clicks and you are ready

  5. #5
    SitePoint Wizard Hammer65's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln Nebraska
    Posts
    1,161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All PEAR classes have dependancies that prevent you from just using that class. Some can be modified to work standalone, if you want to take the time to do it. Several PHP frameworks have the raw code to do it.

    I use Dreamweaver occasionally but I wouldn't recommend the auto-generated code it provides. It's much too verbose and harder to maintain. Not because Adobe doesn't know how to code an editor, but because any auto-generated code has to be made that way in order to adapt to every possible situation. Manual coding will always produce a more streamlined code base.

    I've coded my own based on experiences working with forms and the ideas I have seen in other projects. That's what I would recommend.

  6. #6
    SitePoint Addict
    Join Date
    Jan 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes making my own would be the best solution, but as mentioned tedious and I don't want to reinvent the wheel. So PEAR libraries can be included in commercial applications?

  7. #7
    SitePoint Wizard Hammer65's Avatar
    Join Date
    Nov 2004
    Location
    Lincoln Nebraska
    Posts
    1,161
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, the problem is that the PEAR deployment model is geared toward installation with PHP. A developer normally has to rely on the distribution already being installed and in the include path. Sometimes it is, sometimes it isn't, sometimes the versions of certain files are not up to date. You would have to include either the portion of the distro that you needed plus dependancies or modify the classes you want to work standalone.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •