Hi there,
Project:
The project I'm working on is a site where you can do some tests. E.g.: capture with multiple choice, dropdown list, text input, checkboxes,...
Database:
Each question has a reference to a 'question type', e.g. textbox, multiple choice,...
Problem:
Our content manager would like to asks questions where someone has to enter text in a textbox inside the question.
e.g.: Yesterday I [.....] to the hairdresser, but he [.....] not want to cut my hair.
Script?
If this was hard coded, no problem. But now I have to check the 'question type' in my database, and I need some reference in my 'question' itself, so I know to replace that piece of code in the question with a 'input type=type' box.
Question:
Does anyone of you know how I should code the question, so it can check where to put an 'input type=text" box?
When I retrieve my question from the database, I know it's one with [multiple] text boxes, but how do I code it that it will replace 'the code' [a special tag?] with an input type=text box?
Many thanks in advance if you take your time to help me out.
bram
Project:
The project I'm working on is a site where you can do some tests. E.g.: capture with multiple choice, dropdown list, text input, checkboxes,...
Database:
Each question has a reference to a 'question type', e.g. textbox, multiple choice,...
Problem:
Our content manager would like to asks questions where someone has to enter text in a textbox inside the question.
e.g.: Yesterday I [.....] to the hairdresser, but he [.....] not want to cut my hair.
Script?
If this was hard coded, no problem. But now I have to check the 'question type' in my database, and I need some reference in my 'question' itself, so I know to replace that piece of code in the question with a 'input type=type' box.
Question:
Does anyone of you know how I should code the question, so it can check where to put an 'input type=text" box?
When I retrieve my question from the database, I know it's one with [multiple] text boxes, but how do I code it that it will replace 'the code' [a special tag?] with an input type=text box?
Many thanks in advance if you take your time to help me out.
bram