Form Building

Posted on 2007-08-06
Last Modified: 2013-12-12
I am creating a custom survey builder for use on a multiuser system and all written in php.
Almost figured everything out except how to handle form processing when there will be many different variations of form elements in a form per user.

I am simply asking for ideas to approach this properly.
Any questions, please feel free to ask.

Question by:ray-solomon
    LVL 24

    Accepted Solution

    Think of all the general types of questions and answers you will accept. These will fall into certain data types (checkboxes, textboxes, radioboxes, etc)
    When you encode each survery, give each question an id number that corresponds to a particular data type. Then search through $POST for those ids and you will know how to parse the answers.

    Is this answer useful to you?

    If not, see how some other people did it:
    LVL 10

    Author Comment

    Thanks for your reply. I think that is a good way too. I was thinking along the same lines already. That is helpful.
    I want to leave this question open for a little longer in case of more feedback.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now