Help - Search - Members - Calendar
Full Version: Help with simple problem - please read!
HTMLHelp Forums > Web Authoring > Markup (HTML, XHTML, XML)
assassin231
I'm creating a quiz using dreamweaver that requires someone entering text into two separate fields. The text in each individual field must be entered to a criteria set by myself (kind of like a password but less complicated).

For example: Textbox 1 needs the word 'Apple' to be entered, Textbox 2 needs the word 'Orange' to be entered. Both words need to be correct to display an image of a tick to show that both boxes have the correct answer in them. So far I have only found information of length checks and other forms of validation quite useless to me.

Does anyone know how I would go about creating this quiz with the above?
pandy
What language are you doing this with? JavaScript or something serverside?
assassin231
QUOTE(pandy @ Jun 3 2009, 12:45 PM) *

What language are you doing this with? JavaScript or something serverside?


I will give you a tip: I am "good" with computers in comparison to most people, but my knowledge is really weak with all this stuff so I have no idea what language I am doing it in.

At the moment I am looking at a blank HTML page in dreamweaver, thats about as far as I have got!

I used to know a tiny bit of Javascript, what would you advise?
Darin McGrew
Well, this is in the Markup forum, but HTML alone won't do what you want.

Server-side form processing (e.g., with a CGI or PHP program) is reliable, but the user needs to use forms normally: fill out the fields and then submit the form to the server-side program.

JavaScript can change the page without the user submitting the form, but you have less control over the environment. Different browsers and different browser versions implement JavaScript (and the DOM that JavaScript uses) differently. Modern browsers allow users to disable certain functionality (e.g., opening/resizing windows) without disabling JavaScript completely. Other users will disable JavaScript, or will use plugins like NoScript that disable JavaScript except for whitelisted sites. So all in all, it's less reliable and harder to work with.
pandy
You can find already written scripts that may suit you. Go to http://hotscripts.com , choose the language you want to use (as PHP), then Scripts and Programs, then Votes and Polls. There are both free and paid ones.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.