Click to See Complete Forum and Search --> : Form Help needed
PrincessTwilite
01-26-2003, 10:47 PM
Okay, this may be confusing --- but I'll try to explain it the best that I can.
I need a form that will have three boxes/buttons/spaces for three separate words on it, below the form itself --- and when they fill out the form, they have to fill in 3 text areas with those words. When they press send, an e-mail will be sent to me containing all their information AND those validation words. The form won't work unless the words they entered are correct. (Also: I want the each word to be generated from a list of words that I provide, a different word to be in its place every time the page is refreshed)
See? I can't really explain it.
Here's an example:
Name:
E-mail:
Website:
Word One: Billy
Word Two: Jumped
Word Three: fork
send || cancel
Billy jumped fork
Do you get what I mean? IS there a javascript that CAN do that with a form? If so, toss me a link to it :)
Is this somewhat like what you are trying to accomplish...?
...sorry, forgot the attachment...
PrincessTwilite
01-28-2003, 08:33 PM
Yep, except I need there to be three boxes at the bottom where the words are generated that they need to type into those text areas :)
...the 3 lower boxes are randomly generated already...pre filled in as it were... What exactly would need to be typed in...? I'm not getting the full picture, here.
PrincessTwilite
01-28-2003, 08:45 PM
Well, you know when you sign up for a website (I'm assuming that you have, since you're here) -- they have a box (not a text area) with a randomly generated word in it, and in order to continue on, you must type the right words into the text area where it states.
Here's an example of randomly generated words: http://www.dymphna.net/challenge/buffy.shtml
However, if that works, then I'm not horribly picky --- with that form/script are you able to give a list of words to work from for each box, so that although the words ARE randomly generated, they can only be taken from the possibilities that I've chosen?
...okay, I see what you are saying, now...I'll get back with you on it. BTW, all the words generated can be determined by you. They are in the head section under the text array. Just change anything inside the tick marks (' ') to your own.
PrincessTwilite
01-28-2003, 09:33 PM
Okay, another question -- is there any way to make the list mix itself up? For example, this one:
text[1] = "Word1: <input type=text name=word1 value='school'><br>Word2: <input type=text name=word2 value='fresh'><br>Word3: <input type=text name=word3 value='package'>"
and this one:
text[2] = "Word1: <input type=text name=word1 value='doctor'><br>Word2: <input type=text name=word2 value='saddle'><br>Word3: <input type=text name=word3 value='boats'>"
could mix and match between themeselves?
You see, this is for a writing site, and when readers click to this page, they are assigned a paring, a genre, and a rating. However, because there's so many people that will be using it (hopefully) --- I can't have set combinations or I'd have everyone writing the same stories...do you know ahat I mean?
I know it's possible, I've seen it happen in places before...
I just have know clue how to do it.
But the combinations MUST switch between themselves randomly -- at least Word 1 would switch randomly through all the words availible for Word 1 and Word 2 will switch randomly through all the Word 2's that are availible... etc..
Any idea?
Ok, this one will randomly alternate 10 different words for each box. 1000 combinations (theoretically). Of course you can add as many to each array as you may need...just be sure to match the var textnumber = 10 ; to however many variables are in each array.