• 0

Field validation, update ...


Question

Hello,

I have a form with 5 input fields (name,surname etc.) and now I would like to create field validation (probably js/ajax) but the problem is that the field type should be pulled from mysql table.

Example of table

id|name |type

1|Neowin| a

2|Neo | b

3|Win | c

a=text

b=date

c=number(integer)

how can I make dynamic(is that in context?) validation of each field. Type of field is set by administrator, where he is using drop-down list for every field generated.

Is this possible?

Second problem,

I have few input fields (upload,category,price) but I want to add another field if user would like to add new category, but without creating link to new page.

Example

User clicks on "add category" and text field is created, when user inputs value and clicks on Add, new category is created. But without refreshing first 3 fields, because they will generate error.

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.