This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

can fields take the input names yet


  1. expat
    Member

    can fields in the database take the name of the input fields??

    Posted 16 years ago #
  2. yuniar

    No, MachForm uses 'element_x' field names on purpose to prevent conflict.


    MachForm Founder

    Posted 16 years ago #
  3. expat
    Member

    but why, mysql has it internal checks even if you dont plan to do the checks yourself

    Posted 16 years ago #
  4. yuniar

    Actually, that's the point.

    Let say your form is having these fields:
    1) First Attendant Name
    2) Address
    3) Second Attendant Name
    4) Address

    at this moment, MachForm would create a table with these fields:
    1) element_1
    2) element_2
    3) element_3
    4) element_4

    Now, if you need to name it as the input fields, it would be:
    1) first_attendant_name
    2) address
    3) second_attendant_name
    4) address

    Thus, the conflict between field #2 and #4.

    Also, lot of people are using a large input name. It could be a paragraph or two. That would add more problem.

    I hope I'm being clear.


    MachForm Founder

    Posted 16 years ago #
  5. expat
    Member

    the problem is that you cant rearrange the entries, and when you try to do so manually in the db you dont know which is which

    Posted 16 years ago #
  6. expat
    Member

    you should add a second input box to state that it has to be one word and unique

    Posted 16 years ago #

RSS feed for this topic

Reply