Click to See Complete Forum and Search --> : Replace '_' (underscore) with a text box???


shanuragu
12-19-2003, 07:22 AM
Hi

I am designing a quiz module, where in questions like fill in the blanks will be in the following pattern ..

I am a TeaPot __________ & ________.

This pattern is stored in the data base & displyed on the screen from the db (using while loop).
My problem Is it possible to replace dash (ie, ______) with a text box so that the user can enter the answer in that?? .
How can recognize '-' using CSS??

My thinking using CSS is recoganize the '________' & replace it with a text box (innerHTML). Is it possible?? if so How can I implement it???

Please help its very urgent.
shara:confused:

pyro
12-19-2003, 08:24 AM
Replace it with whichever language you are using to read it from the database.

shanuragu
12-19-2003, 08:35 AM
But how?? I am using VB script to fetch the records from the db. The '_____' may come in between/in the begining/ at the end in the question which I take from the db.
How can I check for the existance of '____'?? If at all I check it using Instr function of VB script How can I replace it???
Also what if more than one '____' are there in a single question. It looks very complicated .. getting confused .. please help!!

thanks in advance.

shara:confused: :mad:

pyro
12-19-2003, 08:40 AM
Unfortunatly, I do not know any VB. Try posting in the General or ASP section. If there is a string replacement method, that should work, if not regex will.