The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Fill in the blank generator
richardja
post Nov 13 2020, 10:07 AM
Post #1





Group: Members
Posts: 2
Joined: 13-November 20
Member No.: 27,636



Hi. I am trying to create a fill-in-the-blank paragraph using HTML.

For example: This is a ____ sentence.

The ____ needs to be a text box that viewers can write in. Once they submit it, I want it to draw from a list of words that I have embedded into the HTML. So, some people might end up with, "This is a good sentence," while others will end up with "This is a bad sentence."

Do you have any tips or code to help me create this?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 13 2020, 11:45 AM
Post #2


.
********

Group: WDG Moderators
Posts: 8,829
Joined: 10-August 06
Member No.: 7



What determines the kind of reply each user gets?

Are you going to save the contributions? Then you need server-side scripting (say PHP), and maybe a database.

Or are they just meant to be seen by each user? Then it's enough to use javascript.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
richardja
post Nov 13 2020, 11:52 AM
Post #3





Group: Members
Posts: 2
Joined: 13-November 20
Member No.: 27,636



I am not going to save the contributions; they are just for each user to see. I am not sure if I can use javascript. It is going into an online classroom on a platform that is increasingly making it more difficult to use Javascript (Canvas).

As far as what determines each reply, I am not totally sure what options exist. If synonyms were possible, I could do that. But then would I have to list every possible synonym somewhere in the code?

QUOTE(Christian J @ Nov 13 2020, 11:45 AM) *

What determines the kind of reply each user gets?

Are you going to save the contributions? Then you need server-side scripting (say PHP), and maybe a database.

Or are they just meant to be seen by each user? Then it's enough to use javascript.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Nov 13 2020, 02:07 PM
Post #4


.
********

Group: WDG Moderators
Posts: 8,829
Joined: 10-August 06
Member No.: 7



QUOTE(richardja @ Nov 13 2020, 05:52 PM) *

I am not going to save the contributions; they are just for each user to see. I am not sure if I can use javascript. It is going into an online classroom on a platform that is increasingly making it more difficult to use Javascript (Canvas).

Canvas is something different. Otherwise javascript is used on virtually the whole web nowadays. That said, server-side (e.g. PHP) is more robust, but it requires a server that lets you run server-side scripts.

QUOTE
As far as what determines each reply, I am not totally sure what options exist. If synonyms were possible, I could do that. But then would I have to list every possible synonym somewhere in the code?

Yes I suppose so.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 3rd August 2021 - 06:10 PM